mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
If we draw ceilings in red do not dig a hole on the profile.
This is an attempt to speed up painting a bit. Since we will draw the red ceiling on top of the profile, I don't see a reason to dig a hole in it, creating an more complex shape to be passed to the painter. Easier shapes are easier to draw. ( I think ) Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
58d9282955
commit
8831bf6350
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ void DiveProfileItem::modelDataChanged(){
|
|||
return;
|
||||
|
||||
/* Show any ceiling we may have encountered */
|
||||
if (prefs.profile_dc_ceiling) {
|
||||
if (prefs.profile_dc_ceiling && !prefs.profile_red_ceiling) {
|
||||
QPolygonF p = polygon();
|
||||
plot_data *entry = dataModel->data() + dataModel->rowCount()-1;
|
||||
for (int i = dataModel->rowCount() - 1; i >= 0; i--, entry--) {
|
||||
|
|
Loading…
Reference in a new issue