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

List:       kde-commits
Subject:    branches/KDE/4.2/kdeedu/marble/src/lib
From:       Patrick Spendrin <ps_ml () gmx ! de>
Date:       2009-01-15 20:06:21
Message-ID: 1232049981.242121.17669.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 911637 by sengels:

fix crash in case delayed loading got that much delayed.
CCBUG:180854

 M  +2 -0      VectorMap.cpp  


--- branches/KDE/4.2/kdeedu/marble/src/lib/VectorMap.cpp #911636:911637
@@ -124,6 +124,8 @@
     {
         // This sorts out polygons by bounding box which aren't visible at all.
         GeoDataCoordinates::PtrVector boundary = (*itPolyLine)->getBoundary();
+        // rather paint an invalid line then crashing here if the boundaries are not loaded yet
+        if(boundary.size() < 5) continue;
 
         for ( int i = 0; i < 5; ++i ) {
             qbound = boundary[i]->quaternion();
[prev in list] [next in list] [prev in thread] [next in thread] 

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