[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Sun Mar 21 21:43:13 CET 2010
SVN commit 1106091 by nienhueser:
Only center on valid routes.
M +3 -1 RoutingWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingWidget.cpp #1106090:1106091
@@ -319,7 +319,9 @@
}
}
- d->m_widget->centerOn(GeoDataLatLonBox::fromLineString(bbox));
+ if (bbox.size()>1) {
+ d->m_widget->centerOn(GeoDataLatLonBox::fromLineString(bbox));
+ }
}
d->m_routingLayer->setRouteDirty(state == RoutingManager::Downloading);
More information about the Marble-commits
mailing list