|
From: Tapio V. <aa...@us...> - 2011-02-03 11:27:01
|
Module: editor
Branch: master
Commit: 076dcfb6bee761fcd81a1f44452333a9fc0446d0
Author: Tapio Vierros <tap...@gm...>
Date: Thu Feb 3 13:26:09 2011 +0200
Fix a typo that totally broke undo/save.
---
notegraphwidget.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/notegraphwidget.cc b/notegraphwidget.cc
index ccd1886..fec08e5 100644
--- a/notegraphwidget.cc
+++ b/notegraphwidget.cc
@@ -308,7 +308,7 @@ void NoteGraphWidget::mouseReleaseEvent(QMouseEvent *event)
// Operation for undo stack & saving
Operation op("MOVE");
op << getNoteLabelId(n)
- << px2s(n->x()) << px2n(n->x() + n->width())
+ << px2s(n->x()) << px2s(n->x() + n->width())
<< int(round(px2n(n->y() + m_noteHalfHeight)));
doOperation(op, Operation::NO_EXEC);
++movecount;
|