diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2022-04-04 01:55:29 +0200 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2022-04-04 20:21:14 +0200 |
commit | 1ad58c77352e418124387b804b18da2aeea22c8b (patch) | |
tree | 34450806390b65778b7a16239a0421614e9b668a /oox/qa/unit/data | |
parent | 0225f1dd04e49191bbf1fa787bb15d1617ab996c (diff) |
tdf#100391 calculate true textarea rect for custGeom
Without the fix the attributes for <a:rect> were set to 'l', 't', 'r'
and 'b'. That means that the textarea rectangle equals the shape
rectangle. That is the default and works for many shapes. But 'Puzzle'
has a smaller textarea rectangle, for example.
Because the values in draw:text-areas are relative to the internal
coordinate system given by draw:viewBox in ODF, but the values in
<a:rect> are relative to the shape coordinate system in OOXML, we
cannot simple write the current absolute values but need to calculate
them depending on actual width and height. For that we need guides.
The patch introduces a guide list. Currently the list contains only the
guides for the textarea rectangle, but it can be extended when export
of handles will be implemented one day.
Change-Id: I1050627ef6459ab5f8fafa939d7905122870c903
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132489
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'oox/qa/unit/data')
-rwxr-xr-x | oox/qa/unit/data/tdf100391_TextAreaRect.odp | bin | 0 -> 13624 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/oox/qa/unit/data/tdf100391_TextAreaRect.odp b/oox/qa/unit/data/tdf100391_TextAreaRect.odp Binary files differnew file mode 100755 index 000000000000..b9b9e5b39e4a --- /dev/null +++ b/oox/qa/unit/data/tdf100391_TextAreaRect.odp |