Skip to content

Commit cb91f81

Browse files
author
ersts
committed
-Prevent histogram from growing when refreshing
-closes ticket #2048 git-svn-id: http://svn.osgeo.org/qgis/trunk@12012 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 04aeb3b commit cb91f81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/qgsrasterlayerproperties.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,8 +1936,8 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
19361936

19371937

19381938
//create the image onto which graph and axes will be drawn
1939-
int myImageWidth = pixHistogram->width();
1940-
int myImageHeight = pixHistogram->height();
1939+
int myImageWidth = pixHistogram->width() - 2;
1940+
int myImageHeight = pixHistogram->height() - 2; //Take two pixels off to account for the boarder around the QLabel
19411941
QPixmap myPixmap( myImageWidth, myImageHeight );
19421942
myPixmap.fill( Qt::white );
19431943

0 commit comments

Comments
 (0)