Diffusion Krita eb61160966dd

Fix a crash when creating a text shape

Authored by dkazakov on Jun 7 2019, 10:45 AM.

Description

Fix a crash when creating a text shape

Every KoShapeController used to reset the global "shape document" in its
KoDocumentResourceManager. The problem is that in Krita we have multiple
KoShapeController-s, but the resource manager is the only one. It means
that every shape selection or shape layer used to reset the pointer to
the global "shape document" to its own one. The only reason why we didn't
have too many crashes is that almost noone uses this "shape document".

Ideally we should:

  1. Remove KoDocumentResourceManager::GlobalShapeController resource. This resource is not global to the document, but is created per-layer. The only user of it atm is the legacy text tool, which should be deprecated.
  1. Remove KoDocumentResourceManager at all. There is no much use of it anymore. Its main user is legacy text tool.

BUG:407554

Details

Committed
dkazakovJun 7 2019, 10:46 AM
Parents
R37:3dfad538fc94: Fix NN algorithm for certain percentages
Branches
Unknown
Tags
Unknown
References
refs/keep-around/eb61160966ddc794cfd02a9225e577f0844e51e0