r21364 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jun 4 14:55:03 UTC 2016


Author: jghali
Date: Sat Jun  4 14:55:03 2016
New Revision: 21364

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21364
Log:
small optimization and code readability improvement

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21364&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Sat Jun  4 14:55:03 2016
@@ -4513,10 +4513,11 @@
 		if (gl.glyph >= ScFace::CONTROL_GLYPHS)
 			return;
 
-		if (!font().replacementName().isEmpty())
+		QString replacementName = font().replacementName();
+		if (!replacementName.isEmpty())
 		{
 			FPointArray outline(font().glyphOutline(gl.glyph));
-			m_really[font().replacementName()].insert(gl.glyph, outline);
+			m_really[replacementName].insert(gl.glyph, outline);
 		}
 	}
 




More information about the scribus-commit mailing list