Permalink
Browse files

gui: Use more precision dumping pixels.

  • Loading branch information...
1 parent 9a2e568 commit 8c3fa76429cdbc366f95b124c2174001f949f43a @jrfonseca jrfonseca committed Feb 28, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 gui/imageviewer.cpp
View
@@ -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("]");

0 comments on commit 8c3fa76

Please sign in to comment.