Update of /cvsroot/libwpg/perfectspot/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21411/src
Modified Files:
renderer.cpp
Log Message:
WPGBrush::style went, so learn to live without it
Index: renderer.cpp
===================================================================
RCS file: /cvsroot/libwpg/perfectspot/src/renderer.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- renderer.cpp 5 Dec 2008 00:14:35 -0000 1.16
+++ renderer.cpp 5 Dec 2008 00:55:48 -0000 1.17
@@ -109,13 +109,13 @@
QColor cBrush(brush.foreColor.cstr());
pbrush.setColor(cBrush);
- if(brush.style == "none")
+ if(propList["draw:fill"] && propList["draw:fill"]->getStr() == "none")
pbrush.setStyle(Qt::NoBrush);
- if(brush.style == "solid")
+ if(propList["draw:fill"] && propList["draw:fill"]->getStr() == "solid")
pbrush.setStyle(Qt::SolidPattern);
- if(brush.style == "gradient")
+ if(propList["draw:fill"] && propList["draw:fill"]->getStr() == "gradient")
{
WPGGradient gradient = brush.gradient;
|