|
From: <cn...@us...> - 2023-03-15 18:27:42
|
Revision: 1363
http://sourceforge.net/p/seq/svn/1363
Author: cn187
Date: 2023-03-15 18:27:39 +0000 (Wed, 15 Mar 2023)
Log Message:
-----------
When adding new location, use current line color
Modified Paths:
--------------
showeq/trunk/src/map.cpp
Modified: showeq/trunk/src/map.cpp
===================================================================
--- showeq/trunk/src/map.cpp 2023-03-15 18:27:31 UTC (rev 1362)
+++ showeq/trunk/src/map.cpp 2023-03-15 18:27:39 UTC (rev 1363)
@@ -688,9 +688,15 @@
// if the user clicked ok, and actually gave a name, add it
if (ok && !name.isEmpty())
- m_mapData.addLocation(name, m_curLocationColor,
- QPoint(point.x(), point.y()));
-
+ {
+ //m_curLocationColor doesn't get set anywhere, so for now, we'll
+ //use whatever the current line color is. Maybe we'll add selecting
+ //a separate location color later. TODO
+ m_mapData.addLocation(name, m_curLineColor, QPoint(point.x(), point.y()));
+ }
+
+ emit mapUpdated();
+
#ifdef DEBUGMAP
seqDebug("addLocation(): Location x added at %d/%d",
point.x(), point.y());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|