Summary: | [Docker][Histogram] Frozen histogram preview on flat pictures | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | David REVOY <info> |
Component: | Dockers | Assignee: | Tiar <tamtamy.tymona> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ahab.greybeard, tamtamy.tymona |
Priority: | NOR | ||
Version: | 4.2.9 | ||
Target Milestone: | --- | ||
Platform: | Appimage | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kde/krita/commit/5a8e0e241aa6c9aa888cd0f60c715833ac8f9195 | Version Fixed In: | |
Sentry Crash Report: |
Description
David REVOY
2020-04-13 09:02:38 UTC
I can reproduce this with the Apr-13 5.0.0 prealpha git bf6f43c and with the Apr-13 4.3.0 'Plus' git ae2e6e5 This fault happens if you make a duplicate layer of the first opened .jpg file. If you don't make a duplicate layer then the histogram updates correctly if you paint on the first opened .jpg file. The second file doesn't need to be a multi-layer .kra file. It can be another .jpg file. If you make a duplicate layer of the first opened .jpg image, then open and close another file, the Histogram will update correctly if you paint on the first opened .jpg file layers. Setting to CONFIRMED Git commit 243a413778e54de14225172e55bf81b28047fdc8 by Agata Cacko. Committed on 13/05/2020 at 15:34. Pushed by tymond into branch 'master'. 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. M +1 -3 plugins/dockers/histogram/histogramdocker_dock.cpp M +12 -18 plugins/dockers/histogram/histogramdockerwidget.cpp M +11 -4 plugins/dockers/histogram/histogramdockerwidget.h https://invent.kde.org/kde/krita/commit/243a413778e54de14225172e55bf81b28047fdc8 Git commit 5a8e0e241aa6c9aa888cd0f60c715833ac8f9195 by Boudewijn Rempt, on behalf of Agata Cacko. Committed on 14/05/2020 at 07:26. Pushed by rempt into branch 'krita/4.3'. 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. (cherry picked from commit 243a413778e54de14225172e55bf81b28047fdc8) M +1 -3 plugins/dockers/histogram/histogramdocker_dock.cpp M +12 -18 plugins/dockers/histogram/histogramdockerwidget.cpp M +11 -4 plugins/dockers/histogram/histogramdockerwidget.h https://invent.kde.org/kde/krita/commit/5a8e0e241aa6c9aa888cd0f60c715833ac8f9195 |