On Wed, Mar 9, 2011 at 12:32 AM, Borys Jurgiel <li...@borysjurgiel.pl> wrote:
> 1. Histogram stretch doesn't work with OTFR enabled (both tools: the one in
> layer context menu and the one in toolbar).

Fixed.

> By the way, why there are the two
> tools for stretching? The one in toolbar works with grayscale rasters only,
> while the one in the layer context menu seems to work always.

No idea. Each one is calling different method :
toolbar -> QgisApp::localHistogramStretch()
c. menu -> QgsLegend::legendLayerStretchUsingCurrentExtent()

It should use just one method and it should be moved to QgsRasterLayer.
But which one? QgsLegend::legendLayerStretchUsingCurrentExtent() may
also change drawingStyle and there is a comment in the code:
// Note: Do we really want to do these next clauses? The user will get
a surprise when the
// drawing style they are using suddenly changes....! TS

Radim
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to