Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dmitry Kazakov
Krita
Commits
5d12f4a4
Commit
5d12f4a4
authored
Apr 14, 2016
by
Dmitry Kazakov
Browse files
Fix initial update of the transform mask when loading a file
BUG:347755 Ref T2081
parent
241ddd4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/image/kis_recalculate_transform_mask_job.cpp
View file @
5d12f4a4
...
...
@@ -22,6 +22,7 @@
#include "kis_debug.h"
#include "kis_layer.h"
#include "kis_image.h"
#include "kis_abstract_projection_plane.h"
KisRecalculateTransformMaskJob
::
KisRecalculateTransformMaskJob
(
KisTransformMaskSP
mask
)
...
...
@@ -57,7 +58,14 @@ void KisRecalculateTransformMaskJob::run()
KisImageSP
image
=
layer
->
image
();
Q_ASSERT
(
image
);
image
->
requestProjectionUpdateNoFilthy
(
layer
,
layer
->
extent
(),
image
->
bounds
());
/**
* When we call requestProjectionUpdateNoFilthy() on a layer,
* its masks' change rect is not counted, because it is considered
* to be N_ABOVE_FILTHY. Therefore, we should expand the dirty
* rect manually to get the correct update
*/
QRect
updateRect
=
layer
->
projectionPlane
()
->
changeRect
(
layer
->
extent
(),
KisLayer
::
N_FILTHY
);
image
->
requestProjectionUpdateNoFilthy
(
layer
,
updateRect
,
image
->
bounds
());
}
int
KisRecalculateTransformMaskJob
::
levelOfDetail
()
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment