diff layer/TextLayer.cpp @ 255:e175ade2d6b0

* double-click in navigate mode relocates the centre frame (closing #1734854)
author Chris Cannam
date Wed, 13 Jun 2007 09:19:33 +0000
parents 28c8e8e3c537
children cd2492c5fe45
line wrap: on
line diff
--- a/layer/TextLayer.cpp	Mon Jun 11 12:14:52 2007 +0000
+++ b/layer/TextLayer.cpp	Wed Jun 13 09:19:33 2007 +0000
@@ -587,15 +587,13 @@
     m_editing = false;
 }
 
-void
+bool
 TextLayer::editOpen(View *v, QMouseEvent *e)
 {
-    std::cerr << "TextLayer::editOpen" << std::endl;
-
-    if (!m_model) return;
+    if (!m_model) return false;
 
     TextModel::PointList points = getLocalPoints(v, e->x(), e->y());
-    if (points.empty()) return;
+    if (points.empty()) return false;
 
     QString label = points.begin()->label;
 
@@ -608,6 +606,8 @@
 	    new TextModel::RelabelCommand(m_model, *points.begin(), label);
 	CommandHistory::getInstance()->addCommand(command);
     }
+
+    return true;
 }    
 
 void