File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
enmapbox/coreapps/rasterlayerstylingapp Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -391,10 +391,11 @@ def onRendererTabChanged(self):
391391 )
392392 layer .setRenderer (renderer )
393393 shader : QgsRasterShader = renderer .shader ()
394+ shaderFunction = shader .rasterShaderFunction ()
394395
395396 with BlockSignals (self .mPseudoBand .mMin , self .mPseudoBand .mMax , self .mPseudoBand .mBandNo ):
396- self .mPseudoBand .mMin .setText (str (shader .minimumValue ()))
397- self .mPseudoBand .mMax .setText (str (shader .maximumValue ()))
397+ self .mPseudoBand .mMin .setText (str (shaderFunction .minimumValue ()))
398+ self .mPseudoBand .mMax .setText (str (shaderFunction .maximumValue ()))
398399 self .mPseudoBand .mBandNo .setBand (renderer .inputBand ())
399400 self .mPseudoBand .mSlider .setValue (renderer .inputBand ())
400401
You can’t perform that action at this time.
0 commit comments