r14791 by fschmid - Allow reading of "RGBProcessColor" tag for eps and ai

scribus-commit scribus-commit at lists.scribus.net
Sun Feb 21 12:40:17 CET 2010


Revision: 14791
Author: fschmid
Date: 2010-02-21T11:37:25.259649Z
Commit message: Allow reading of "RGBProcessColor" tag for eps and ai

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

Diffs:
Index: scribus/util_color.cpp
===================================================================
--- scribus/util_color.cpp	(revision 14790)
+++ scribus/util_color.cpp	(revision 14791)
@@ -647,13 +647,16 @@
 							}
 						}
 					}
-					if (tmp.startsWith("%%RGBCustomColor"))
+					if ((tmp.startsWith("%%RGBCustomColor")) || (tmp.startsWith("%%RGBProcessColor")))
 					{
 						if (tmp.contains("(atend)"))
 							isAtend = true;
 						else
 						{
-							tmp = tmp.remove(0,17);
+							if (tmp.startsWith("%%RGBCustomColor"))
+								tmp = tmp.remove(0,17);
+							else if (tmp.startsWith("%%RGBProcessColor"))
+								tmp = tmp.remove(0,18);
 							ScTextStream ts2(&tmp, QIODevice::ReadOnly);
 							ts2 >> c >> m >> y;
 							FarNam = ts2.readAll();




More information about the scribus-commit mailing list