[Marble-commits] KDE/kdeedu/marble/src/lib/routing

Dennis Nienhüser earthwings at gentoo.org
Mon May 10 20:49:33 CEST 2010


SVN commit 1125137 by nienhueser:

Suppress error message display in the map when the route is marked dirty. They are outdated and may confuse the user.
BUG: 237122

 M  +1 -1      RoutingLayer.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingLayer.cpp #1125136:1125137
@@ -283,7 +283,7 @@
             QRegion region = painter->regionFromEllipse( pos, 12, 12 );
             m_instructionRegions.push_front( ModelRegion( index, region ) );
             painter->drawEllipse( pos, 8, 8 );
-        } else if ( type == RoutingModel::Error ) {
+        } else if ( !m_routeDirty && type == RoutingModel::Error ) {
             painter->setPen( QColor( Qt::white ) );
             painter->setBrush( QBrush( QColor::fromRgb( 226, 8, 0, 200 ) ) ); // red, oxygen palette
             painter->drawAnnotation( pos, index.data().toString(), QSize( 180, 80 ), 10, 30, 15, 15 );


More information about the Marble-commits mailing list