mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Create a version of create_graph_info that doesn't depend on GC.
This version of the create plot info is the same as before, with the difference that it doesn't depends on the gc. Also fixed a crash. The Pressure Index, Information and interpolated seems wrong, I'm getting only zeroes. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0787347691
commit
779c1b6738
4 changed files with 21 additions and 1 deletions
|
@ -51,7 +51,7 @@ void DiveCartesianAxis::updateTicks()
|
|||
double currValue = min;
|
||||
|
||||
// Remove the uneeded Ticks / Texts.
|
||||
if (ticks.size() > steps) {
|
||||
if (!ticks.isEmpty() && ticks.size() > steps) {
|
||||
while (ticks.size() > steps) {
|
||||
DiveLineItem *removedLine = ticks.takeLast();
|
||||
removedLine->animatedHide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue