Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
-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 committed Nov 8, 2009
1 parent 04aeb3b commit cb91f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit cb91f81

Please sign in to comment.