Problems with SetSnapRect() for rotated and/or sheared custom shapes

Thorsten Behrens thb at libreoffice.org
Wed Nov 6 10:06:41 UTC 2019


Hi Regina,

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...

Cheers,

-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1032 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20191106/df6bbbf3/attachment.sig>


More information about the LibreOffice mailing list