X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Factioninterface.cpp;h=033fbe1c428e66f3b943ce7a88f3d40b4cf9aa0d;hb=5374cdbb127a1bced9a65abeb30b1ef4eb5e35a7;hp=4280b5c9c8a40f1b9234212b4bcf6f652403f3d5;hpb=d774c2655ba2c3657a565f325411144452392277;p=architektonas diff --git a/src/base/actioninterface.cpp b/src/base/actioninterface.cpp index 4280b5c..033fbe1 100644 --- a/src/base/actioninterface.cpp +++ b/src/base/actioninterface.cpp @@ -43,7 +43,6 @@ ActionInterface::ActionInterface(const char * name, RS_EntityContainer & c, this->name = name; status = 0; finished = false; - //triggerOnResume = false; // Graphic provides a pointer to the graphic if the entity container is a //graphic (i.e. can also hold layers). @@ -52,8 +51,11 @@ ActionInterface::ActionInterface(const char * name, RS_EntityContainer & c, // Document pointer will be used for undo / redo document = c.getDocument(); - //this->cursor = cursor; - //setSnapMode(graphicView.getDefaultSnapMode()); + // This is here until I can figure out a better way to contain all of this + // circular referential nonsense that exists in this codebase. It will be + // expunged, by Grabthar's Hammer! + graphicView->snapper.SetContainer(container); + graphicView->snapper.SetGraphicView(graphicView); // <-- THIS is what I mean! INSANE! RS_DEBUG->print("ActionInterface::ActionInterface: Setting up action: \"%s\": OK", name); }