]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_actioninterface.cpp
Check in prior to mucking around with preview/snapper rendering...
[architektonas] / src / base / rs_actioninterface.cpp
index 7a885f8f85f770b40868d69497ce4737a2fcc35d..e6790280133d6f88e3c71879cade5f2087d3757e 100644 (file)
@@ -89,13 +89,13 @@ QString RS_ActionInterface::getName()
 }
 
 /**
- * Called to initiate an action. This funtcion is often
+ * Called to initiate an action. This function is often
  * overwritten by the implementing action.
  *
  * @param status The status on which to initiate this action.
  * default is 0 to begin the action.
  */
-void RS_ActionInterface::init(int status)
+void RS_ActionInterface::init(int status/*= 0*/)
 {
        RS_Snapper::init();
        setStatus(status);
@@ -280,10 +280,14 @@ void RS_ActionInterface::finish()
        graphicView->setMouseCursor(RS2::ArrowCursor);
        //graphicView->requestToolBar(RS2::ToolBarMain);
        updateToolBar();
+//Maybe change this to SnapperOff()?
 //jlh: deleteSnapper();
        hideOptions();
        finished = true;
-       RS_Snapper::finish();
+       RS_Snapper::finish();           // Sets RS_Snapper::finished = true
+       // I think this is where we want to update the screen...
+//     graphicView->update();
+       graphicView->redraw();
        RS_DEBUG->print("RS_ActionInterface::finish: OK");
 }