]> Shamusworld >> Repos - architektonas/blobdiff - src/drawdimensionaction.cpp
Fix DrawArcAction to actually allow creation of Arcs.
[architektonas] / src / drawdimensionaction.cpp
index 2414afa107285fd8e5b2238a07c80f42dfaed7e3..58fa09595028e0e884c54b52cf62073edff64492 100644 (file)
@@ -78,10 +78,12 @@ DrawDimensionAction::~DrawDimensionAction()
                // We create the new object here, and then pass it off to the
                // DrawingView which stuffs it into the document.
 //             line = new Line(p1, p2);
+               dimension = new Dimension(p1, p2);
                // We don't need no stinkin' sentinels, when we have signals & slots!
                emit ObjectReady(dimension);
 
-               p1 = p2;
+               state = FIRST_POINT;
+//             p1 = p2;
        }
 }