[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Thu Jul 29 21:25:06 CEST 2010
SVN commit 1156829 by nienhueser:
fix route parsing for yours
M +5 -4 RoutingModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingModel.cpp #1156828:1156829
@@ -72,11 +72,11 @@
RoutingModelPrivate::RoutingModelPrivate()
: m_totalDistance( 0.0 ),
+ m_totalTimeRemaining( 0.0 ),
m_timeRemaining( 0.0 ),
+ m_totalDistanceRemaining( 0.0 ),
+ m_instructionSize( 0 ),
m_nextInstructionIndex(0),
- m_instructionSize( 0 ),
- m_totalTimeRemaining( 0.0 ),
- m_totalDistanceRemaining( 0.0 ),
m_routeLeft( false )
{
// nothing to do
@@ -86,7 +86,8 @@
{
GeoDataGeometry* geometry = placemark->geometry();
GeoDataLineString* lineString = dynamic_cast<GeoDataLineString*>( geometry );
- if ( !placemark->name().isEmpty() && placemark->name() != "Route" ) {
+ QStringList blacklist = QStringList() << "" << "Route" << "Tessellated";
+ if ( !blacklist.contains( placemark->name() ) ) {
if( lineString ) {
RouteElement element;
element.type = RoutingModel::Instruction;
More information about the Marble-commits
mailing list