diff --git a/src/qgsrasterlayerproperties.cpp b/src/qgsrasterlayerproperties.cpp index 5d91cada47b..f8a4706fd43 100644 --- a/src/qgsrasterlayerproperties.cpp +++ b/src/qgsrasterlayerproperties.cpp @@ -1078,6 +1078,7 @@ void QgsRasterLayerProperties::pbnHistRefresh_clicked() myPainter.drawRect(myX+myYGutterWidth,myImageHeight-(myY+myXGutterHeight),myBarWidth,myY); } //store this point in our line too + myY = myGraphImageHeight - myY; myPointArray.setPoint(myBin, myX+myYGutterWidth, myY-myXGutterHeight); } //draw a line on the graph along the bar peaks;