Loading isis/src/qisis/objs/ControlNetTool/ControlNetTool.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -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(); } } Loading isis/src/qisis/objs/ControlNetTool/ControlNetTool.h +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
isis/src/qisis/objs/ControlNetTool/ControlNetTool.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -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(); } } Loading
isis/src/qisis/objs/ControlNetTool/ControlNetTool.h +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading