[Digikam-devel] [digikam] [Bug 335661] CANVAS : image is displayed with wrong magnification after crop
Gilles Caulier
caulier.gilles at gmail.com
Sat Nov 8 15:57:58 GMT 2014
https://bugs.kde.org/show_bug.cgi?id=335661
--- Comment #17 from Gilles Caulier <caulier.gilles at gmail.com> ---
Local Contrast tool is this filter :
https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/dimg/filters/lc/localcontrastfilter.h
Running through this image editor tool :
https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/imageplugins/enhance/localcontrasttool.h
based on this parent class from editor :
https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/changes/utilities/imageeditor/editor/editortool.h
The tool is loaded in editor canvas with this interface :
https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/changes/utilities/imageeditor/editor/editortooliface.h
To resume, editor canvas is a widget stack. There is a main canvas based on
this widget :
https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/utilities/imageeditor/widgets/canvas.h
...and tool loaded pass a dedicated canvas widget. The interface switch between
main to tool canvas accordingly with user action. In case of local contrast,
the widget loaded by interface is this one :
https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/utilities/imageeditor/widgets/imageregionwidget.h
When interface load/unload Canvas/ImageRegionWidget and vis versa, the zoom
level and visible region of the canvas must be preserved/restored beofre and
after tool session.
I think the problem is located in this rules from editor interface, probably
due to a race condition somewhere (i never reproduce this problem, excepted in
rarely particular conditions)
Gilles Caulier
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list