Bug report #17944

Compute Histogram will reset max value of band 1 to 0

Added by Joaquim Rosa about 6 years ago. Updated about 5 years ago.

Assignee:Jürgen Fischer
Affected QGIS version:2.18.16 Regression?:No
Operating System:Ubuntu 17.10 (64 bit) Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25840


In QGIS desktop, clicking "Compute Histogram" in the Histogram tab of the Layer Properties window, will reset the max value of Band 1 to 0.

Steps to reproduce:
- Open a TIF file, for example.
- Open the layer properties.
- Click on the Style tab.
- Give values for min and max for each band.
- Click on the Histogram tab.
- Click Compute Histogram.
- Go back to the Style tab, and see that the max value is 0 for band 1.


#1 Updated by Jürgen Fischer about 5 years ago

  • Status changed from Open to Feedback

Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.

#2 Updated by Joaquim Rosa about 5 years ago

  • Assignee set to Jürgen Fischer

I can confirm that the bug no longer exists in QGIS 3.4. Thank you.

#3 Updated by Giovanni Manghi about 5 years ago

  • Resolution set to fixed/implemented
  • Status changed from Feedback to Closed

Also available in: Atom PDF