[Marble-commits] KDE/kdeedu/marble/src/plugins/render/positionmarker
Dennis Nienhüser
earthwings at gentoo.org
Wed Dec 29 17:22:51 CET 2010
SVN commit 1210124 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.
M +2 -1 PositionMarker.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/render/positionmarker/PositionMarker.cpp #1210123:1210124
@@ -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