X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fimageviewer.cpp;fp=gui%2Fimageviewer.cpp;h=867fa61a48cf31ed540616ca8b03b4b5e630ee30;hb=7ec54f936be0ac8d7fade4df133c4b1009e5782a;hp=eced83b63dd3eba1ae64fc36ced0c512e71b1a9d;hpb=66654031728218dff8a5a467fe73476d4e1d8b35;p=apitrace diff --git a/gui/imageviewer.cpp b/gui/imageviewer.cpp index eced83b..867fa61 100644 --- a/gui/imageviewer.cpp +++ b/gui/imageviewer.cpp @@ -151,6 +151,11 @@ void ImageViewer::showPixel(int x, int y) QString label = tr("Pixel: "); + /* If the image is flipped, substitute y to match */ + if (flipCheckBox->isChecked()) { + y = m_convertedImage.height() - y - 1; + } + if (m_image->channelType == image::TYPE_UNORM8) { label += createPixelLabel(m_image, x, y); } else {