[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kchart/shape
From: Johannes Simon <johannes.simon () gmail ! com>
Date: 2010-04-14 20:37:06
Message-ID: 20100414203706.95E21AC8A8 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1114900 by jsimon:
Use "none" for draw:fill and draw:stroke for border and background of a surface if they\'re hidden.
M +6 -2 Surface.cpp
--- trunk/koffice/kchart/shape/Surface.cpp #1114899:1114900
@@ -238,8 +238,12 @@
// elementName is chart:floor or chart:wall
bodyWriter.startElement( elementName );
- QBrush backgroundBrush = d->kdPlane->backgroundAttributes().brush();
- QPen framePen = d->kdPlane->frameAttributes().pen();
+ QBrush backgroundBrush;
+ if ( d->kdPlane->backgroundAttributes().isVisible() )
+ backgroundBrush = d->kdPlane->backgroundAttributes().brush();
+ QPen framePen( Qt::NoPen );
+ if ( d->kdPlane->frameAttributes().isVisible() )
+ framePen = d->kdPlane->frameAttributes().pen();
KoOdfGraphicStyles::saveOdfFillStyle( style, mainStyles, backgroundBrush );
KoOdfGraphicStyles::saveOdfStrokeStyle( style, mainStyles, framePen );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic