r15853 by jghali - cosmetic change : use chop() instead of more complicated code

scribus-commit scribus-commit at lists.scribus.net
Sun Nov 14 12:21:18 CET 2010


Author: jghali
Date: Sun Nov 14 11:21:17 2010
New Revision: 15853

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15853
Log:
cosmetic change : use chop() instead of more complicated code

Modified:
    trunk/Scribus/scribus/collect4output.cpp

Modified: trunk/Scribus/scribus/collect4output.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15853&path=/trunk/Scribus/scribus/collect4output.cpp
==============================================================================
--- trunk/Scribus/scribus/collect4output.cpp (original)
+++ trunk/Scribus/scribus/collect4output.cpp Sun Nov 14 11:21:17 2010
@@ -342,7 +342,9 @@
 {
 	QStringList metricsFiles;
 	QString     basePath = baseDir + "/" + baseName;
-	QString     afnm = basePath.left(basePath.length()-3);
+	QString     afnm(basePath);
+	afnm.chop(3);
+
 	// Look for afm files
 	QString afmName(afnm+"afm");
 	if(QFile::exists(afmName))




More information about the scribus-commit mailing list