From 5b23dce4ba48dbdefaed8d6c0680fd3bd55aff2d Mon Sep 17 00:00:00 2001 From: Jesse Mapel Date: Sun, 20 Mar 2022 10:17:04 -0700 Subject: [PATCH] Fixed qview crashing when reading pixel value --- CHANGELOG.md | 1 + isis/src/qisis/objs/TrackTool/TrackTool.cpp | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db6471f633..d65798749c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,7 @@ Keywords when running CAMSTATS. [#3605](https://github.com/USGS-Astrogeology/IS - Fixed a bug where the measure residuals reported in the bundleout.txt file were incorrect. [#4655](https://github.com/USGS-Astrogeology/ISIS3/issues/4655) - Fixed a bug where jigsaw would raise an error when solving for framing camera pointing in observation mode. [#4686](https://github.com/USGS-Astrogeology/ISIS3/issues/4686) - Fixed slow runs of automos when the priority was BAND. [#4793](https://github.com/USGS-Astrogeology/ISIS3/pull/4793) +- Fixed qview crashing when attempting to load image DNs. [4818](https://github.com/USGS-Astrogeology/ISIS3/issues/4818) ## [6.0.0] - 2021-08-27 diff --git a/isis/src/qisis/objs/TrackTool/TrackTool.cpp b/isis/src/qisis/objs/TrackTool/TrackTool.cpp index e20c195243..5401790737 100644 --- a/isis/src/qisis/objs/TrackTool/TrackTool.cpp +++ b/isis/src/qisis/objs/TrackTool/TrackTool.cpp @@ -273,10 +273,7 @@ namespace Isis { } QString TrackTool::updateColorLabel(QPoint p, ViewportBuffer *buf, QLabel *label) { - if(buf->working()) { - label->setText("BUSY"); - } - else { + if(!buf->working()) { const QRect rRect = buf->bufferXYRect(); if(p.x() >= rRect.left() && p.x() < rRect.right() && @@ -286,6 +283,7 @@ namespace Isis { return PixelToString(buf->getLine(rBufY)[rBufX], 12); } } + return "BUSY"; }