Skip to content
Permalink
Browse files

-Prevent histogram from growing when refreshing

-closes ticket #2048

git-svn-id: http://svn.osgeo.org/qgis/trunk@12012 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ersts
ersts committed Nov 8, 2009
1 parent 04aeb3b commit cb91f81927b963981dcc5a0c8cb829c743a16025
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsrasterlayerproperties.cpp
@@ -1936,8 +1936,8 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()


//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 );

0 comments on commit cb91f81

Please sign in to comment.
You can’t perform that action at this time.