-Prevent histogram from growing when refreshing

-closes ticket #2048

git-svn-id: http://svn.osgeo.org/qgis/trunk@12012 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
ersts 2009-11-08 13:43:49 +00:00
parent 04aeb3ba1e
commit cb91f81927

View File

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