[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Thu Jan 20 23:06:33 CET 2011
SVN commit 1216036 by nienhueser:
Guard against faulty routes.
CCBUG: 263753
M +2 -0 RoutingLayer.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingLayer.cpp #1216035:1216036
@@ -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