r14269 by fschmid - Fixed PDF error when exporting gradients with only 2 colors.

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 9 00:30:18 CET 2009


Revision: 14269
Author: fschmid
Date: 2009-11-08T17:14:53.374013Z
Commit message: Fixed PDF error when exporting gradients with only 2 colors.

Changeset: 
M  /trunk/Scribus/scribus/pdflib_core.cpp

Diffs:
Index: scribus/pdflib_core.cpp
===================================================================
--- scribus/pdflib_core.cpp	(revision 14268)
+++ scribus/pdflib_core.cpp	(revision 14269)
@@ -5880,6 +5880,8 @@
 			}
 			PutDoc(bctx.trimmed()+"]\n");
 		}
+		else
+			PutDoc("/Bounds []\n");
 		QString entx = "";
 		PutDoc("/Functions\n");
 		PutDoc("[\n");
@@ -5999,6 +6001,8 @@
 		}
 		PutDoc(bctx.trimmed()+"]\n");
 	}
+	else
+		PutDoc("/Bounds []\n");
 	QString entx = "";
 	PutDoc("/Functions\n");
 	PutDoc("[\n");




More information about the scribus-commit mailing list