]> Shamusworld >> Repos - architektonas/blobdiff - src/base/actioninterface.cpp
In the middle of chasing down MDI not activating bug, renaming of Graphic to
[architektonas] / src / base / actioninterface.cpp
index 1b4d5d8171303c46f9658943b82853a27675bf4a..00c5439c944c7fa544807a94d41c778e0dd4e4a5 100644 (file)
@@ -53,6 +53,8 @@ ActionInterface::ActionInterface(const char * name, EntityContainer & ec,
 {
        DEBUG->print("ActionInterface::ActionInterface: Setting up action: \"%s\"", name);
 
+// Is it? Doesn't seem like it. Whenever you change snap types, the preview disappears.
+// Not sure what's going on with that.
 //This doesn't work properly; not sure why that is...
 //Actually, it's working perfectly. Now we just need to propagate the fixes everywhere. :-/
        // We'll use snapperVisibility for the save/restore functionality...
@@ -63,8 +65,9 @@ ActionInterface::ActionInterface(const char * name, EntityContainer & ec,
        finished = false;
 
        // Graphic provides a pointer to the graphic if the entity container is a
-       // graphic (i.e. can also hold layers).
-       graphic = ec.getGraphic();
+       // drawing (i.e. can also hold layers).
+#warning "!!! Need to rename graphic to drawing !!!"
+       graphic = ec.GetDrawing();
 
        // Document pointer will be used for undo / redo
        document = ec.getDocument();