File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222#include " StelMainScriptAPIProxy.hpp"
2323#include " StelScriptMgr.hpp"
2424#include " StelLocaleMgr.hpp"
25+ #include " ScreenImageMgr.hpp"
2526
2627#include " ConstellationMgr.hpp"
2728#include " AsterismMgr.hpp"
@@ -1207,11 +1208,10 @@ void StelMainScriptAPI::clear(const QString& state)
12071208 StelMovementMgr* movmgr = GETSTELMODULE (StelMovementMgr);
12081209 ZodiacalLight* zl = GETSTELMODULE (ZodiacalLight);
12091210 StelPropertyMgr* propMgr = StelApp::getInstance ().getStelPropertyManager ();
1210- LabelMgr* lMgr = GETSTELMODULE (LabelMgr);
1211- StelSkyLayerMgr* siMgr = GETSTELMODULE (StelSkyLayerMgr);
12121211
1213- lMgr->deleteAllLabels ();
1214- siMgr->removeSkyLayer (" *" );
1212+ GETSTELMODULE (LabelMgr)->deleteAllLabels ();
1213+ GETSTELMODULE (StelSkyLayerMgr)->removeSkyLayer (" *" );
1214+ GETSTELMODULE (ScreenImageMgr)->deleteAllImages ();
12151215
12161216 // Hide artificial satellites through StelProperties to avoid crash if plugin was not loaded
12171217 propMgr->setStelPropertyValue (" Satellites.flagHintsVisible" , false , true );
You can’t perform that action at this time.
0 commit comments