[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-16 9:43:27
Message-ID: 1232099007.633145.4749.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 911842 by sengels:
fix more crashes - now these should be fixed everywhere
backport of r911840
BUG:180892
M +8 -0 VectorMap.cpp
--- branches/KDE/4.2/kdeedu/marble/src/lib/VectorMap.cpp #911841:911842
@@ -184,6 +184,10 @@
// Let's just use the top left and the bottom right bounding
// box point for this projection.
+
+ // rather paint an invalid line then crashing here if the boundaries are not loaded yet
+ if(boundary.size() < 3) continue;
+
for ( int i = 1; i < 3; ++i ) {
boundary[i]->geoCoordinates(lon, lat);
x = (qreal)(m_imgwidth) / 2.0 - rad2Pixel * (centerLon - lon);
@@ -278,6 +282,10 @@
// Let's just use the top left and the bottom right bounding box point for
// this projection
+
+ // rather paint an invalid line then crashing here if the boundaries are not loaded yet
+ if(boundary.size() < 3) continue;
+
for ( int i = 1; i < 3; ++i ) {
boundary[i]->geoCoordinates(lon, lat);
x = (qreal)(m_imgwidth) / 2.0 + rad2Pixel * (lon - centerLon);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic