r19216 by jghali - #12377: "Transform" does not manage correctly units

scribus-commit scribus-commit at lists.scribus.net
Thu Jun 12 17:04:49 UTC 2014


Author: jghali
Date: Thu Jun 12 17:04:49 2014
New Revision: 19216

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19216
Log:
#12377: "Transform" does not manage correctly units

Modified:
    branches/Version14x/Scribus/scribus/plugins/tools/transform/transformdialog.cpp

Modified: branches/Version14x/Scribus/scribus/plugins/tools/transform/transformdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19216&path=/branches/Version14x/Scribus/scribus/plugins/tools/transform/transformdialog.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/tools/transform/transformdialog.cpp (original)
+++ branches/Version14x/Scribus/scribus/plugins/tools/transform/transformdialog.cpp Thu Jun 12 17:04:49 2014
@@ -62,8 +62,8 @@
 	m_doc = doc;
 	m_unitRatio = unitGetRatioFromIndex(m_doc->unitIndex());
 	m_suffix = unitGetSuffixFromIndex(m_doc->unitIndex());
-	translateHorizontal->setSuffix(m_suffix);
-	translateVertical->setSuffix(m_suffix);
+	translateHorizontal->setNewUnit(m_doc->unitIndex());
+	translateVertical->setNewUnit(m_doc->unitIndex());
 	rotationValue->setWrapping( true );
 	rotationValue->setValues( -180.0, 180.0, 1, 0);
 	rotationValue->setSuffix(unitGetSuffixFromIndex(6));




More information about the scribus-commit mailing list