[Marble-commits] branches/KDE/4.6/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Thu Jan 20 23:17:52 CET 2011
SVN commit 1216041 by nienhueser:
Guard against faulty routes.
CCBUG: 263753
Backport of commit 1216036.
M +2 -0 RoutingLayer.cpp
--- branches/KDE/4.6/kdeedu/marble/src/lib/routing/RoutingLayer.cpp #1216040:1216041
@@ -243,12 +243,14 @@
GeoDataDocument* route = m_alternativeRoutesModel->route( i );
if ( route ) {
GeoDataLineString* points = AlternativeRoutesModel::waypoints( route );
+ if ( points ) {
painter->drawPolyline( *points );
QRegion region = painter->regionFromPolyline( *points, 8 );
m_alternativeRouteRegions.push_back( RequestRegion( i, region ) );
}
}
}
+}
void RoutingLayerPrivate::renderRoute( GeoPainter *painter )
{
More information about the Marble-commits
mailing list