r19623 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:37 UTC 2014


Author: jghali
Date: Mon Nov 10 19:25:37 2014
New Revision: 19623

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

Modified:
    branches/Version14x/Scribus/scribus/nodeeditpalette.cpp

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




More information about the scribus-commit mailing list