[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Thu Jul 29 21:58:07 CEST 2010
SVN commit 1156840 by nienhueser:
fix segfault (instructions can be empty when waypoints are not)
M +4 -0 RoutingModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingModel.cpp #1156839:1156840
@@ -351,6 +351,10 @@
}
}
+ if ( instructions.isEmpty() ) {
+ return;
+ }
+
d->m_instructionSize = instructions.size();
qreal totalTimeRemaining = 0.0;
More information about the Marble-commits
mailing list