r18014 by jghali - #11308: Drop-down list in Measurements tool is too small

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 30 22:19:02 UTC 2012


Author: jghali
Date: Sun Dec 30 22:19:02 2012
New Revision: 18014

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18014
Log:
#11308: Drop-down list in Measurements tool is too small

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

Modified: branches/Version14x/Scribus/scribus/measurements.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18014&path=/branches/Version14x/Scribus/scribus/measurements.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/measurements.cpp (original)
+++ branches/Version14x/Scribus/scribus/measurements.cpp Sun Dec 30 22:19:02 2012
@@ -27,10 +27,9 @@
 	int maxUindex = unitGetMaxIndex() - 2;
 	textWidth = fontMetrics().width("mmm")+12;
 	for (int i = 0; i <= maxUindex; ++i)
-	{
 		unitSwitch->addItem(unitGetStrFromIndex(i));
-		unitSwitch->setMinimumSize(textWidth, 12);
-	}
+	int minHeight = unitSwitch->minimumSizeHint().height();
+	unitSwitch->setMinimumSize(textWidth, minHeight);
 	resize(minimumSizeHint());
 	connect(unitSwitch, SIGNAL(currentIndexChanged(int)), this, SLOT(unitChanged()));
 }




More information about the scribus-commit mailing list