Summary: | mask origin is messed up on saving/loading | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Halla Rempt <halla> |
Component: | General | Assignee: | Dmitry Kazakov <dimula73> |
Status: | RESOLVED FIXED | ||
Severity: | critical | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/calligra/992c5c23ea09b525dd90e1aed1e4ada7406d75dd | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | image with mask to play with |
Description
Halla Rempt
2012-08-01 06:42:14 UTC
Created attachment 72866 [details]
image with mask to play with
Was already present in 2.4 Git commit 348ee8b634ffd41bc59997e1dee841d6df2da259 by Dmitry Kazakov. Committed on 26/10/2012 at 13:23. Pushed by dkazakov into branch 'master'. Fixed loading of masks with the offset That patch introduces the following changes: 1) Removed lazy initialization of masks' selection. Now you always must call initSelection after the creation of the mask (probably, we can move it into c-tor). 2) KisMask::setSelection must only be used when we need to switch the underlying selection explicitly (like, e.g. in KisImage::setGlobalSelection). In the rest of the cases you need to work with already existent selection. M +1 -0 krita/image/kis_image.cc M +6 -23 krita/image/kis_mask.cc M +3 -0 krita/image/tests/kis_filter_mask_test.cpp M +26 -17 krita/image/tests/kis_mask_test.cpp M +2 -0 krita/image/tests/kis_transparency_mask_test.cpp M +24 -0 krita/sdk/tests/testutil.h M +11 -14 krita/ui/kra/kis_kra_load_visitor.cpp M +1 -1 krita/ui/kra/kis_kra_load_visitor.h M +11 -8 krita/ui/kra/kis_kra_loader.cpp M +4 -4 krita/ui/kra/kis_kra_loader.h http://commits.kde.org/calligra/348ee8b634ffd41bc59997e1dee841d6df2da259 Git commit 7da5237740f207f41227a5e12dfca246fa37497b by Dmitry Kazakov. Committed on 26/10/2012 at 13:23. Pushed by dkazakov into branch 'vector_compositioning_kazakov'. Fixed loading of masks with the offset That patch introduces the following changes: 1) Removed lazy initialization of masks' selection. Now you always must call initSelection after the creation of the mask (probably, we can move it into c-tor). 2) KisMask::setSelection must only be used when we need to switch the underlying selection explicitly (like, e.g. in KisImage::setGlobalSelection). In the rest of the cases you need to work with already existent selection. M +1 -0 krita/image/kis_image.cc M +6 -23 krita/image/kis_mask.cc M +3 -0 krita/image/tests/kis_filter_mask_test.cpp M +26 -17 krita/image/tests/kis_mask_test.cpp M +2 -0 krita/image/tests/kis_transparency_mask_test.cpp M +24 -0 krita/sdk/tests/testutil.h M +11 -14 krita/ui/kra/kis_kra_load_visitor.cpp M +1 -1 krita/ui/kra/kis_kra_load_visitor.h M +11 -8 krita/ui/kra/kis_kra_loader.cpp M +4 -4 krita/ui/kra/kis_kra_loader.h http://commits.kde.org/calligra/7da5237740f207f41227a5e12dfca246fa37497b Git commit 992c5c23ea09b525dd90e1aed1e4ada7406d75dd by Jaroslaw Staniek, on behalf of Dmitry Kazakov. Committed on 26/10/2012 at 13:23. Pushed by staniek into branch 'kexi-altertable-staniek'. Fixed loading of masks with the offset That patch introduces the following changes: 1) Removed lazy initialization of masks' selection. Now you always must call initSelection after the creation of the mask (probably, we can move it into c-tor). 2) KisMask::setSelection must only be used when we need to switch the underlying selection explicitly (like, e.g. in KisImage::setGlobalSelection). In the rest of the cases you need to work with already existent selection. M +1 -0 krita/image/kis_image.cc M +6 -23 krita/image/kis_mask.cc M +3 -0 krita/image/tests/kis_filter_mask_test.cpp M +26 -17 krita/image/tests/kis_mask_test.cpp M +2 -0 krita/image/tests/kis_transparency_mask_test.cpp M +24 -0 krita/sdk/tests/testutil.h M +11 -14 krita/ui/kra/kis_kra_load_visitor.cpp M +1 -1 krita/ui/kra/kis_kra_load_visitor.h M +11 -8 krita/ui/kra/kis_kra_loader.cpp M +4 -4 krita/ui/kra/kis_kra_loader.h http://commits.kde.org/calligra/992c5c23ea09b525dd90e1aed1e4ada7406d75dd |