Diffusion Krita fc9fba29a1ca

Fix unittests to support new implementation of KoPathShape::boundingRect

Authored by dkazakov on Jan 27 2020, 10:37 AM.

Description

Fix unittests to support new implementation of KoPathShape::boundingRect

Two changes happened in KoPathShape::boundingRect after 9f6b70d3c0ee:

  1. Shape has a stroke: then instead of tracing entire shape stroke and then calculating its bounds we just grow the outline of the shape by the insets of the stroke. It makes shapes manipulations much faster.
  1. Shape has no stroke: then no outline growing happens. Before the commit, the outline was still traced with cosmetic 1px pen, so the bounding rect actually grew by 0.5px, which was not very correct (though harmless).

Details

Committed
dkazakovJan 27 2020, 10:37 AM
Parents
R37:79489a50ce71: Fix assert in TestKoShapeRegistry
Branches
Unknown
Tags
Unknown
References
refs/keep-around/fc9fba29a1cabc0e847b8fbc841de5589cc39fb7