Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gui: Use more precision dumping pixels.

  • Loading branch information...
commit 8c3fa76429cdbc366f95b124c2174001f949f43a 1 parent 9a2e568
@jrfonseca jrfonseca authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gui/imageviewer.cpp
View
4 gui/imageviewer.cpp
@@ -131,10 +131,10 @@ QString createPixelLabel(image::Image *img, int x, int y)
pixel = ((T*)pixelLocation);
pixelLabel += QLatin1String("[");
- pixelLabel += QString::fromLatin1("%1").arg(pixel[0]);
+ pixelLabel += QString::fromLatin1("%1").arg((double)pixel[0], 0, 'g', 9);
for (int channel = 1; channel < img->channels; ++channel) {
- pixelLabel += QString::fromLatin1(", %1").arg(pixel[channel]);
+ pixelLabel += QString::fromLatin1(", %1").arg((double)pixel[channel], 0, 'g', 9);
}
pixelLabel += QLatin1String("]");
Please sign in to comment.
Something went wrong with that request. Please try again.