Diffusion Krita a7a201d274fe

Fix crash when opening a file with color transformation filter mask

Authored by dkazakov on Oct 16 2019, 1:32 PM.

Description

Fix crash when opening a file with color transformation filter mask

Now we have difference between KisFilter::factoryConfguration() and
KisFilter::defaultConfiguration():

  • KisFilter::factoryConfguration() creates an empty configuration object of a proper C++ type. This object should be filled by fromXML() right after this call.
  • KisFilter::defaultConfiguration() calls factoryConfiguration() and fill it with default values at the state how they should look in filter dialog.

This split is needed, because new versions of Krita may introduce
options not available in older saves configs. In such cases, Krita
should be able to recognize if the config is the "old" one, and
doesn't have new parameters.

BUG:412982

Details

Committed
dkazakovOct 16 2019, 1:32 PM
Parents
R37:5571e34bb661: Fixed undoing on the last anchor in magnetic lasso
Branches
Unknown
Tags
Unknown