[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Sun Aug 1 21:09:43 CEST 2010
SVN commit 1157975 by nienhueser:
Can't assert that a route request exists in updateRoute(), the update can be triggered by modifying the very first point. Fixes marble crashing when modifying route points before calculating directions (thanks jmho).
M +4 -1 RoutingManager.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingManager.cpp #1157974:1157975
@@ -80,7 +80,10 @@
void RoutingManager::updateRoute()
{
- Q_ASSERT( d->m_route );
+ if ( !d->m_route ) {
+ return;
+ }
+
d->m_haveRoute = false;
int realSize = 0;
More information about the Marble-commits
mailing list