r13871 by jghali - #8348 : impossible to set spacing under/below paragraph greater than 3 mm if mm is main unit

scribus-commit scribus-commit at lists.scribus.net
Wed Aug 26 05:41:48 CEST 2009


Revision: 13871
Author: jghali
Date: 2009-08-16T11:12:09.645318Z
Commit message: #8348 : impossible to set spacing under/below paragraph greater than 3 mm if mm is main unit

Changeset: 
M  /branches/Version133x/Scribus/scribus/edit1format.cpp

Diffs:
Index: scribus/edit1format.cpp
===================================================================
--- scribus/edit1format.cpp	(revision 13870)
+++ scribus/edit1format.cpp	(revision 13871)
@@ -405,11 +405,17 @@
 	connect(lineSpacingPop, SIGNAL(activated(int)), this, SLOT(toggleLsp(int )));
 	connect(fontKern, SIGNAL(valueChanged(int)), this, SLOT(updatePreview()));
 
-
+	int oldAboveVMax = AboveV->maxValue();
+	int oldBelowVMax = BelowV->maxValue();
+	int oldDropDistMax = DropDist->maxValue();
 	int decimals = unitGetDecimalsFromIndex(dEin);
 	AboveV->setDecimals(decimals);
 	BelowV->setDecimals(decimals);
 	DropDist->setDecimals(decimals);
+	// #8348 : set maxValue to old value to mimic 1.3.3.12 behavior
+	AboveV->setMaxValue(oldAboveVMax);
+	BelowV->setMaxValue(oldBelowVMax);
+	DropDist->setMaxValue(oldDropDistMax);
 	/* PFJ - 29.02.04 - Altered switch so only case 2 is tested */
 	QString ein = unitGetSuffixFromIndex(dEin);
 	AboveV->setSuffix(ein);




More information about the scribus-commit mailing list