subsurface/qt-mobile
Dirk Hohndel 38ab11a6c0 Add option to allocate the samples in fake_dc()
We (ab)use fake_dc() to create a pleasing profile for a manually added
dive. Based on it's intended use, fake_dc() simply handed back a dc
structure that pointed at staticly allocated samples - that's obviously
(now that I think about it) going to blow up in my face if I edit a
manually added dive more than once.

So now we have an option for fake_dc() to actually allocate the samples -
this way the rest of the code can treat these samples as we would treat
samples created any other way. We can free them and replace them with a
new set.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-20 09:36:14 -08:00
..
qml QML UI: better text when no profile is shown for a dive 2016-02-15 07:27:00 -08:00
qmlmanager.cpp Add option to allocate the samples in fake_dc() 2016-02-20 09:36:14 -08:00
qmlmanager.h QML UI: enable edit of gasmix 2016-02-13 10:04:05 -08:00
qmlprofile.cpp Avoid uninitialized memory access 2016-01-28 09:02:20 -08:00
qmlprofile.h try to fix profile scaling 2016-01-13 16:27:41 -08:00