r19622 by jghali - #12806: X-Pos/Y-Pos unit is not updated in "Nodes" window

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 10 19:25:08 UTC 2014


Author: jghali
Date: Mon Nov 10 19:25:08 2014
New Revision: 19622

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19622
Log:
#12806: X-Pos/Y-Pos unit is not updated in "Nodes" window

Modified:
    trunk/Scribus/scribus/ui/nodeeditpalette.cpp

Modified: trunk/Scribus/scribus/ui/nodeeditpalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19622&path=/trunk/Scribus/scribus/ui/nodeeditpalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/nodeeditpalette.cpp (original)
+++ trunk/Scribus/scribus/ui/nodeeditpalette.cpp Mon Nov 10 19:25:08 2014
@@ -1050,7 +1050,18 @@
 	if (m_doc==0)
 		return;
 	unitRatio = m_doc->unitRatio();
+
+	bool sigBlocked1 = XSpin->blockSignals(true);
+	bool sigBlocked2 = YSpin->blockSignals(true);
+	bool sigBlocked3 = scaleDistance->blockSignals(true);
+
+	XSpin->setNewUnit(m_doc->unitIndex());
+	YSpin->setNewUnit(m_doc->unitIndex());
 	scaleDistance->setNewUnit(m_doc->unitIndex());
+
+	XSpin->blockSignals(sigBlocked1);
+	YSpin->blockSignals(sigBlocked2);
+	scaleDistance->blockSignals(sigBlocked3);
 }
 
 ScribusDoc* NodePalette::currentDocument() const




More information about the scribus-commit mailing list