[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/filters/kspread/excel
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2010-03-08 21:45:13
Message-ID: 1268084713.995252.25361.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1100873 by sebsauer:

negative chart:pie-offset's are possible too it seems.

 M  +1 -1      import/excelimport.cc  
 M  +1 -1      sidewinder/objects.h  


--- trunk/koffice/filters/kspread/excel/import/excelimport.cc #1100872:1100873
@@ -1630,7 +1630,7 @@
 
             foreach(ChartObject::Format* f, series->datasetFormat) {
                 if(ChartObject::PieFormat* pieformat = dynamic_cast<ChartObject::PieFormat*>(f))
-                    if(pieformat->pcExplode > 0)
+                    if(pieformat->pcExplode != 0)
                         bodyWriter->addAttribute("chart:pie-offset", pieformat->pcExplode);
             }
 
--- trunk/koffice/filters/kspread/excel/sidewinder/objects.h #1100872:1100873
@@ -250,7 +250,7 @@
     {
     public:
         int pcExplode; // from PieFormat
-        PieFormat(int pcExplode) : Format(), pcExplode(pcExplode) {}
+        PieFormat(int pcExplode = 0) : Format(), pcExplode(pcExplode) {}
     };
 
     class ChartImpl
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic