r15058 by fschmid - Fixed Bug #9088: "choosing the diamond gradient makes scribus crash"

scribus-commit scribus-commit at lists.scribus.net
Sat May 8 10:00:20 CEST 2010


Revision: 15058
Author: fschmid
Date: 2010-05-08T07:55:58.836642Z
Commit message: Fixed Bug #9088: "choosing the diamond gradient makes scribus crash"

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

Diffs:
Index: scribus/scpainter.cpp
===================================================================
--- scribus/scpainter.cpp	(revision 15057)
+++ scribus/scpainter.cpp	(revision 15058)
@@ -1608,6 +1608,10 @@
 				pat = cairo_pattern_create_for_surface(img);
 				cairo_pattern_set_extend(pat, CAIRO_EXTEND_PAD);
 				cairo_pattern_set_filter(pat, CAIRO_FILTER_GOOD);
+#else
+				double r, g, b;
+				m_fill.getRgbF(&r, &g, &b);
+				pat = cairo_pattern_create_rgba(r, g, b, 1.0);
 #endif
 			}
 			else if (fill_gradient.type() == VGradient::mesh)




More information about the scribus-commit mailing list