|
From: Lasse Kärkkäi. <tr...@us...> - 2011-02-02 12:36:11
|
Module: editor Branch: master Commit: 73a4a1665793e01c90123cd44ed0df49aad49eda Author: Lasse Karkkainen <tro...@tr...> Date: Wed Feb 2 13:36:00 2011 +0100 Fix compile warning. --- notelabel.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notelabel.cc b/notelabel.cc index 224b7f1..3e5daa6 100644 --- a/notelabel.cc +++ b/notelabel.cc @@ -127,7 +127,7 @@ void NoteLabel::mouseMoveEvent(QMouseEvent *event) NoteLabel *n = this; // Pick first note in the selection chain while (n->prevSelected) n = n->prevSelected; - for (n; n; n = n->nextSelected) + for (; n; n = n->nextSelected) n->move(n->x() + dx, ngw->n2px(int(round(ngw->px2n(n->y() + dy + height() / 2)))) - height() / 2); ngw->updateNotes((event->pos() - m_hotspot).x() < 0); } |