[QGIS Commit] r12012 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Nov 8 08:43:50 EST 2009


Author: ersts
Date: 2009-11-08 08:43:49 -0500 (Sun, 08 Nov 2009)
New Revision: 12012

Modified:
   trunk/qgis/src/app/qgsrasterlayerproperties.cpp
Log:
-Prevent histogram from growing when refreshing
-closes ticket #2048

Modified: trunk/qgis/src/app/qgsrasterlayerproperties.cpp
===================================================================
--- trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2009-11-08 13:24:08 UTC (rev 12011)
+++ trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2009-11-08 13:43:49 UTC (rev 12012)
@@ -1936,8 +1936,8 @@
 
 
   //create the image onto which graph and axes will be drawn
-  int myImageWidth = pixHistogram->width();
-  int myImageHeight =  pixHistogram->height();
+  int myImageWidth = pixHistogram->width() - 2;
+  int myImageHeight =  pixHistogram->height() - 2; //Take two pixels off to account for the boarder around the QLabel
   QPixmap myPixmap( myImageWidth, myImageHeight );
   myPixmap.fill( Qt::white );
 



More information about the QGIS-commit mailing list