|
From: <cn...@us...> - 2023-03-15 18:27:34
|
Revision: 1362
http://sourceforge.net/p/seq/svn/1362
Author: cn187
Date: 2023-03-15 18:27:31 +0000 (Wed, 15 Mar 2023)
Log Message:
-----------
Fix map colors not getting saved correctly
Modified Paths:
--------------
showeq/trunk/src/mapcore.cpp
Modified: showeq/trunk/src/mapcore.cpp
===================================================================
--- showeq/trunk/src/mapcore.cpp 2023-03-15 18:27:24 UTC (rev 1361)
+++ showeq/trunk/src/mapcore.cpp 2023-03-15 18:27:31 UTC (rev 1362)
@@ -1332,7 +1332,7 @@
currentLineL = *mlit;
z1 = float(currentLineL->z());
- const QColor& color = currentLineL->origColor().isValid() ? currentLineL->color() : currentLineL->origColor();
+ const QColor& color = currentLineL->color().isValid() ? currentLineL->color() : currentLineL->origColor();
r = color.red();
g = color.green();
b = color.blue();
@@ -1363,7 +1363,7 @@
for (; mmit != m_mapLayers[layerNum]->mLines().end(); ++mmit)
{
currentLineM = *mmit;
- const QColor& color = currentLineM->origColor().isValid() ? currentLineM->color() : currentLineM->origColor();
+ const QColor& color = currentLineM->color().isValid() ? currentLineM->color() : currentLineM->origColor();
r = color.red();
g = color.green();
b = color.blue();
@@ -1391,7 +1391,8 @@
for (; lit != m_mapLayers[layerNum]->locations().end(); ++lit)
{
currentLoc = *lit;
- const QColor& color = currentLoc->origColor().isValid() ? currentLoc->color() : currentLoc->origColor();
+ //TODO why is this zero?
+ const QColor& color = currentLoc->color().isValid() ? currentLoc->color() : currentLoc->origColor();
// convert spaces to underscores
name = currentLoc->name();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|