r18043 by fschmid - Fixed use of wrong variable.

scribus-commit scribus-commit at lists.scribus.net
Thu Jan 3 19:17:21 UTC 2013


Author: fschmid
Date: Thu Jan  3 19:17:21 2013
New Revision: 18043

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18043
Log:
Fixed use of wrong variable.

Modified:
    trunk/Scribus/scribus/canvasmode_normal.cpp

Modified: trunk/Scribus/scribus/canvasmode_normal.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18043&path=/trunk/Scribus/scribus/canvasmode_normal.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_normal.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_normal.cpp Thu Jan  3 19:17:21 2013
@@ -413,7 +413,7 @@
 					m_hoveredItem = hoveredItem;
 					if ((hoveredItem->annotation().Type() == Annotation::Text) && (hoveredItem->annotation().IsOpen()))
 					{
-						if (m_view->moveTimerElapsed() && m_canvas->m_viewMode.m_MouseButtonPressed && (m->buttons() & Qt::LeftButton) && (!currItem->locked()))
+						if (m_view->moveTimerElapsed() && m_canvas->m_viewMode.m_MouseButtonPressed && (m->buttons() & Qt::LeftButton) && (!hoveredItem->locked()))
 						{
 							double dx = mousePointDoc.x() - m_mouseCurrentPoint.x();
 							double dy = mousePointDoc.y() - m_mouseCurrentPoint.y();




More information about the scribus-commit mailing list