Skip to content
Commit 5a8e0e24 authored by Agata Cacko's avatar Agata Cacko Committed by Halla Rempt
Browse files

Fix Histogram updates after opening a flat file

Before this commit, histogram would not update if you open a file
with a single layer and operate only on layers other than the original
one.

It was because the histogram widget would save the paint device
of the projection when the view was created. Projection paint device can
change in various cases: for example in this one, the paint device for
the projection was the reused projection of the first layer. When
creating a new layer, there was a new paint device created for the
projection, so the paint device

This commit fixes it by always adding the canvas as a parameter
when updating the histogram.

BUG:420014
(cherry picked from commit 243a4137)
parent 0161f7d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment