r21924 by jghali - #14751: Document Settings Tab Width spinbox does not accept values below one inch

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 16 23:07:13 UTC 2017


Author: jghali
Date: Sun Apr 16 23:07:13 2017
New Revision: 21924

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21924
Log:
#14751: Document Settings Tab Width spinbox does not accept values below one inch

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

Modified: branches/Version14x/Scribus/scribus/tabtools.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21924&path=/branches/Version14x/Scribus/scribus/tabtools.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/tabtools.cpp	(original)
+++ branches/Version14x/Scribus/scribus/tabtools.cpp	Sun Apr 16 23:07:13 2017
@@ -43,6 +43,7 @@
 {
 	docu = doc;
 	fontPreview = false;
+	unitRatio = unitGetRatioFromIndex(unitIndex);
 
 	tabToolsLayout = new QHBoxLayout(this);
 	tabToolsLayout->setMargin(0);
@@ -194,7 +195,7 @@
 	textLabel3b2t = new QLabel(tr( "Tab Fill Character:" ), subTabText);
 	textLabel3b2t->setBuddy(tabFillCombo);
 	subTabTextLayout->addWidget( textLabel3b2t, 7, 0 );
-	gapTab = new ScrSpinBox( 1, 200, subTabText, unitIndex );
+	gapTab = new ScrSpinBox( 1 * unitRatio, 200, subTabText, unitIndex );
 
 	subTabTextLayout->addWidget( gapTab, 7, 3, Qt::AlignLeft );
 	textLabel3b2t2 = new QLabel(tr( "Tab Width:" ), subTabText);




More information about the scribus-commit mailing list