r24066 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Fri Oct 9 17:09:16 UTC 2020


Author: jghali
Date: Fri Oct  9 17:09:16 2020
New Revision: 24066

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24066
Log:
Code style fixes

Modified:
    trunk/Scribus/scribus/ui/scrspinbox.cpp

Modified: trunk/Scribus/scribus/ui/scrspinbox.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24066&path=/trunk/Scribus/scribus/ui/scrspinbox.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/scrspinbox.cpp	(original)
+++ trunk/Scribus/scribus/ui/scrspinbox.cpp	Fri Oct  9 17:09:16 2020
@@ -134,7 +134,7 @@
 
 double ScrSpinBox::getValue(int unitIndex) const
 {
-	double val=value() / unitGetRatioFromIndex(m_unitIndex);
+	double val = value() / unitGetRatioFromIndex(m_unitIndex);
 	if (unitIndex == 0)
 		return val;
 	return val * unitGetRatioFromIndex(unitIndex);
@@ -171,9 +171,9 @@
 //	qDebug()<<"crtSepDecimal"<<crtSepDecimal;
 	QRegExp rxP;
 	if (m_unitIndex==SC_PICAS)
-		rxP.setPattern("\\b(\\d+)" + CommonStrings::strP + "?(\\d+\\"+crtSepDecimal+"?\\d*)?\\b");
+		rxP.setPattern("\\b(\\d+)" + CommonStrings::strP + "?(\\d+\\" + crtSepDecimal + "?\\d*)?\\b");
 	else
-		rxP.setPattern("\\b(\\d+)" + CommonStrings::strP + "(\\d+\\"+crtSepDecimal+"?\\d*)?\\b");
+		rxP.setPattern("\\b(\\d+)" + CommonStrings::strP + "(\\d+\\" + crtSepDecimal + "?\\d*)?\\b");
 	int posP = 0;
 	while (posP >= 0)
 	{




More information about the scribus-commit mailing list