mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
-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:
parent
04aeb3ba1e
commit
cb91f81927
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user