Words: Save anchor info also for page-anchored shapes
ClosedPublic

Authored by danders on Sep 16 2018, 8:16 AM.

Details

Summary

LO needs anchor info to position shapes correctly.

Diff Detail

Repository
R8 Calligra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
danders created this revision.Sep 16 2018, 8:16 AM
Restricted Application added a project: Calligra: 3.0. · View Herald TranscriptSep 16 2018, 8:16 AM
Restricted Application added a subscriber: Calligra-Devel-list. · View Herald Transcript
danders requested review of this revision.Sep 16 2018, 8:16 AM

Bah I can't remember this, but page anchored shapes don't have anchors as such, so I'm wondering what exactly is this writing to file?

After reading the fine print, see: http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1420028_253892949
it seems to me a shape can be anchored to a page in different ways. Note this:
"If the attribute value is not from-left and not from-inside, the svg:x attribute associated with the frame element is ignored for text documents."
This would explain that LO seems to discard x,y when anchor info is not saved.
Afaics there is no defined default values for anchor values.

boemann accepted this revision.Sep 17 2018, 8:10 AM
This revision is now accepted and ready to land.Sep 17 2018, 8:10 AM
This revision was automatically updated to reflect the committed changes.