|
From: Yoda-JM <yo...@us...> - 2011-02-02 13:22:56
|
Module: editor
Branch: master
Commit: c162362f91740423c10280a962d7a5044e681580
Author: Vincent Le Ligeour <yo...@us...>
Date: Wed Feb 2 14:22:35 2011 +0100
Fixed segfault introduced by new move prototype
---
notegraphwidget.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/notegraphwidget.cc b/notegraphwidget.cc
index 9b8a405..3c841e1 100644
--- a/notegraphwidget.cc
+++ b/notegraphwidget.cc
@@ -464,8 +464,9 @@ void NoteGraphWidget::move(NoteLabel *note, int value)
int movecount = 0;
for (NoteLabel *n = note ; n; n = n->nextSelected, ++movecount) {
Operation op("MOVE");
- op << getNoteLabelId(n);
- op << n->x() << int(round(px2n(n->y() + m_noteHalfHeight))) + value;
+ op << getNoteLabelId(n)
+ << px2s(n->x()) << px2s(n->x() + n->width())
+ << int(round(px2n(n->y() + m_noteHalfHeight))) + value;
doOperation(op);
}
|