X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Factioninterface.cpp;fp=src%2Fbase%2Factioninterface.cpp;h=9f38848e2df778ae588dc33ab3dfb9dee8e2435d;hb=1f0d096a7fc370ff02477f3860beae2669bf8903;hp=b62b57869a8c2841342fb2ce6af8e7d1a211ecea;hpb=20cce16e98fc9b052c5862efa6394a285971e846;p=architektonas diff --git a/src/base/actioninterface.cpp b/src/base/actioninterface.cpp index b62b578..9f38848 100644 --- a/src/base/actioninterface.cpp +++ b/src/base/actioninterface.cpp @@ -58,6 +58,8 @@ ActionInterface::ActionInterface(const char * name, RS_EntityContainer & c, // expunged, by Grabthar's Hammer! graphicView->snapper.SetContainer(container); graphicView->snapper.SetGraphicView(graphicView); // <-- THIS is what I mean! INSANE! + graphicView->snapper.SetVisible(); + graphicView->preview.SetVisible(); RS_DEBUG->print("ActionInterface::ActionInterface: Setting up action: \"%s\": OK", name); } @@ -109,6 +111,11 @@ void ActionInterface::init(int status/*= 0*/) updateMouseCursor(); updateToolBar(); } + else // status < 0, e.g. this action is finished + { + graphicView->snapper.SetVisible(false); + graphicView->preview.SetVisible(false); + } } /**