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

List:       kde-commits
Subject:    koffice/plugins/chartshape/kdchart/src
From:       Johannes Simon <johannes.simon () gmail ! com>
Date:       2010-10-19 22:00:03
Message-ID: 20101019220003.AFB29AC89A () svn ! kde ! org
[Download RAW message or body]

SVN commit 1187626 by jsimon:

Do not draw polar plane if it has no diagrams. Otherwise it will crash in that case.

 M  +2 -1      KDChartPolarCoordinatePlane.cpp  


--- trunk/koffice/plugins/chartshape/kdchart/src/KDChartPolarCoordinatePlane.cpp #1187625:1187626
@@ -142,7 +142,8 @@
 void PolarCoordinatePlane::paint ( QPainter* painter )
 {
     AbstractDiagramList diags = diagrams();
-    if ( d->coordinateTransformations.size() == diags.size() )
+    if ( diags.count() > 0 &&
+         d->coordinateTransformations.size() == diags.size() )
     {
         PaintContext ctx;
         ctx.setPainter ( painter );
[prev in list] [next in list] [prev in thread] [next in thread] 

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