r22099 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Tue Jul 4 22:27:38 UTC 2017


Author: jghali
Date: Tue Jul  4 22:27:38 2017
New Revision: 22099

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22099
Log:
add some parenthesis for safety

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22099&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Tue Jul  4 22:27:38 2017
@@ -207,7 +207,7 @@
 					pdfFontName += Pdf::toPdf(fontNr);
 				}
 
-				if ((pdfFontName != m_prevFontName) || fontSize() != m_prevFontSize)
+				if ((pdfFontName != m_prevFontName) || (fontSize() != m_prevFontSize))
 				{
 					m_glyphBuffer += pdfFontName + " " + FToStr(fontSize()) + " Tf\n";
 					m_prevFontName = pdfFontName;
@@ -352,7 +352,7 @@
 					pdfFontName += Pdf::toPdf(fontNr);
 				}
 
-				if ((pdfFontName != m_prevFontName) || fontSize() != m_prevFontSize)
+				if ((pdfFontName != m_prevFontName) || (fontSize() != m_prevFontSize))
 				{
 					m_glyphBuffer += pdfFontName + " " + FToStr(fontSize()) + " Tf\n";
 					m_prevFontName = pdfFontName;




More information about the scribus-commit mailing list