Commit 6259e1ae authored by Tracie Sucharski's avatar Tracie Sucharski
Browse files

PROG: Redraw measures on viewports when a new control net is loaded.

parent a08b7ae9
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -99,9 +99,12 @@ namespace Isis {
    */
   void ControlNetTool::setControlNet(ControlNet *cnet) {
     m_controlNet = cnet;
     // TODO:  TLS 7-25-17  This method is called by Project::open before there are any viewports,
     // so the following command seg faults.  Need to add check for viewports or ??
     //paintAllViewports();
    
     //  Cannot use Tool::cubeViewportList() because it does not properly return a NULL if viewports
     //  don't exist.
     if (workspace() && workspace()->cubeViewportList()) {
       paintAllViewports();
     }
   }


+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,8 @@ namespace Isis {
   *                           networks Fixes #4567
   *   @history 2018-03-12 Tracie Sucharski - Fixed some documentation leftover from renaming from
   *                           IpceTool.  References #5090.
   *   @history 2018-03-27 Tracie Sucharski - Redraw cube viewports when a new control net is
   *                           loaded.
   */
  class ControlNetTool : public Tool {
    Q_OBJECT