Problems with SetSnapRect() for rotated and/or sheared custom shapes
thb at libreoffice.org
Wed Nov 6 10:06:41 UTC 2019
sorry for being late to the discussion - your assessment wrt. snap
rects is correct from what I recall.
Regina Henschel wrote:
> So my suggestion would be now, to keep SdrObjCustomShape::SetSnapRect() to
> use the passed rectangle as logical rectangle and change all callers so,
> that they pass a suitable rectangle.
Sounds like the least-worst solution. Custom shapes sadly are a bit of
a hack anyway, I know Armin had some plans to convert them into
primitives (instead of being composed of draw shapes). That would make
bound rect calculations a lot easier...
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1032 bytes
Desc: not available
More information about the LibreOffice