Commit 4d4efa73 authored by Summer Stapleton's avatar Summer Stapleton
Browse files

SpectralPlotWindow may now account for when no cube viewports are open. Fixes #2142

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@8257 41f8697f-d340-4b68-9986-7bafba869bb8
parent f07039be
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -192,7 +192,6 @@ namespace Isis {
   * @param cvp
   */
  void SpectralPlotWindow::setViewport(MdiCubeViewport *cvp) {
    if (cvp == NULL) return;
    m_cvp = cvp;

  }
+5 −1
Original line number Diff line number Diff line
@@ -35,6 +35,11 @@ namespace Isis {
   * @ingroup Visualization Tools
   *
   * @internal
   *  @history 2017-10-18 Summer Stapleton - Member variable m_cvp can now be set to NULL in
   *                        ::setViewport() to represent that there are no open cube viewports.
   *                        This means that ::drawBandMarkers will no longer attempt to access a
   *                        non-existant cube. Fixes: #2142.
   *
   */
  class SpectralPlotWindow : public PlotWindow {
      Q_OBJECT
@@ -74,4 +79,3 @@ namespace Isis {
};

#endif