Commit 43532474 authored by Makayla Shepherd's avatar Makayla Shepherd
Browse files

qnet will not crash when zooming. Fixes #2171.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@6274 41f8697f-d340-4b68-9986-7bafba869bb8
parent 94839c9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ namespace Isis {
   * Cancels the current operation. Stops filling ASAP.
   */
  void ViewportBufferFill::stop() {
    p_rect->setBottom(p_requestPosition);
    p_rect->setBottom(p_requestPosition - 1);
  }


+5 −1
Original line number Diff line number Diff line
@@ -11,8 +11,12 @@ namespace Isis {
   * @author ????-??-?? Unknown
   *
   * @internal
   *   @history 2011-04-25 Steven Lambright Fixed a problem where 1 too few
   *   @history 2011-04-25 Steven Lambright - Fixed a problem where 1 too few
   *                       lines were being read
   *   @history 2015-06-30 Makayla Shepherd and Ian Humphrey - Modified stop() to keep the viewport
   *                       buffer object from reading an extra line at the bottom of the viewport 
   *                       rectangle. This could potentially cause a crash from reading outside of 
   *                       the bounds. Fixes #2171.
   */
  class ViewportBufferFill : public ViewportBufferAction {
    public: