r17291 by fschmid - PDF Importer: support Type 0 Functions (Sampled Functions) in gradients.

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 11 08:57:51 UTC 2012


Author: fschmid
Date: Sat Feb 11 08:57:51 2012
New Revision: 17291

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17291
Log:
PDF Importer: support Type 0 Functions (Sampled Functions) in gradients.

Modified:
    trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp

Modified: trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17291&path=/trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp Sat Feb 11 08:57:51 2012
@@ -496,7 +496,7 @@
 			}
 		}
 	}
-	else if (func->getType() == 2)
+	else if ((func->getType() == 2) || (func->getType() == 0))
 	{
 		GfxColor stop1;
 		((GfxAxialShading*)shading)->getColor(0.0, &stop1);
@@ -591,7 +591,7 @@
 			}
 		}
 	}
-	else if (func->getType() == 2)
+	else if ((func->getType() == 2) || (func->getType() == 0))
 	{
 		GfxColor stop1;
 		((GfxRadialShading*)shading)->getColor(0.0, &stop1);




More information about the scribus-commit mailing list