mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Do not add the items to the scene twice.
Those items have parent(), which means that when the parent has a scene, they are automatically added and removed from the scene. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bb71707321
commit
691fbabb7a
1 changed files with 0 additions and 2 deletions
|
@ -397,7 +397,6 @@ void DiveCartesianPlane::setup()
|
||||||
line->setZValue(-1);
|
line->setZValue(-1);
|
||||||
line->setPen(gridPen());
|
line->setPen(gridPen());
|
||||||
horizontalLines.push_back(line);
|
horizontalLines.push_back(line);
|
||||||
scene()->addItem(line);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = bottomAxis->minimum(), max = bottomAxis->maximum(); i < max; i += 600) { // increments by 10 minutes.
|
for (int i = bottomAxis->minimum(), max = bottomAxis->maximum(); i < max; i += 600) { // increments by 10 minutes.
|
||||||
|
@ -407,7 +406,6 @@ void DiveCartesianPlane::setup()
|
||||||
line->setZValue(-1);
|
line->setZValue(-1);
|
||||||
line->setPen(gridPen());
|
line->setPen(gridPen());
|
||||||
verticalLines.push_back(line);
|
verticalLines.push_back(line);
|
||||||
scene()->addItem(line);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue