r20684 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Thu Jan 14 23:00:11 UTC 2016


Author: jghali
Date: Thu Jan 14 23:00:11 2016
New Revision: 20684

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20684
Log:
#13654: Evince warning when outlining font : "Syntax Error: No current point in closepath"

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20684&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Thu Jan 14 23:00:11 2016
@@ -1186,7 +1186,10 @@
 		}
 		else
 		{
-			fon = "h";
+			// 13654: make evince emit warning about "Syntax Error: No current point in closepath"
+			// PDF specification is not quite clear about that, but a single "h" operator might not
+			// be a valid way to make an empty path
+			// fon = "h";
 			np = FPoint(0, 0);
 			np1 = FPoint(0, 0);
 		}
@@ -1314,7 +1317,10 @@
 		}
 		else
 		{
-			fon = "h";
+			// 13654: make evince emit warning about "Syntax Error: No current point in closepath"
+			// PDF specification is not quite clear about that, but a single "h" operator might not
+			// be a valid way to make an empty path
+			fon = " " /*"h"*/;
 			np = FPoint(0, 0);
 			np1 = FPoint(0, 0);
 		}




More information about the scribus-commit mailing list