[Marble-commits] branches/KDE/4.6/kdeedu/marble/src/plugins/render/positionmarker
Dennis Nienhüser
earthwings at gentoo.org
Wed Dec 29 17:29:16 CET 2010
SVN commit 1210126 by nienhueser:
Stop painting the position marker and accuracy indicator when no plugin is active. Fixes the (possibly wrong) position still being visible after disabling GPS.
Backport of commit 1210124.
M +2 -1 PositionMarker.cpp
--- branches/KDE/4.6/kdeedu/marble/src/plugins/render/positionmarker/PositionMarker.cpp #1210125:1210126
@@ -141,7 +141,8 @@
GeoSceneLayer * layer )
{
Q_UNUSED( layer )
- if (renderPosition().contains(renderPos))
+ bool const gpsActive = dataFacade()->positionTracking()->positionProviderPlugin() != 0;
+ if ( gpsActive && renderPosition().contains(renderPos) )
{
if ( m_viewport != viewport ) {
m_viewport = viewport;
More information about the Marble-commits
mailing list