[Libreoffice-bugs] [Bug 130182] New: FILEOPEN: PPTX: anchorCtr="0" is imported as TextHorizontalAdjust_CENTER
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Jan 24 19:44:56 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=130182
Bug ID: 130182
Summary: FILEOPEN: PPTX: anchorCtr="0" is imported as
TextHorizontalAdjust_CENTER
Product: LibreOffice
Version: 6.5.0.0.alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Impress
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: xiscofauli at libreoffice.org
Created attachment 157413
--> https://bugs.documentfoundation.org/attachment.cgi?id=157413&action=edit
sample file
Found while investigating bug 129685
Steps to reproduce:
1. Open attached document
-> Text in all shapes is centered. it should be aligned to the left. See
comparison image
I think the problem is in
https://opengrok.libreoffice.org/xref/core/oox/source/drawingml/textbodypropertiescontext.cxx?r=a7f28581#80
something like this fixes the issue
const OptValue<bool> bAnchorCtr = rAttribs.getBool( XML_anchorCtr );
if( bAnchorCtr.has() )
{
mrTextBodyProp.mbAnchorCtr = bAnchorCtr.get();
if( mrTextBodyProp.mbAnchorCtr )
mrTextBodyProp.maPropertyMap.setProperty(
PROP_TextHorizontalAdjust, TextHorizontalAdjust_CENTER );
else
mrTextBodyProp.maPropertyMap.setProperty(
PROP_TextHorizontalAdjust, TextHorizontalAdjust_LEFT );
}
however, it makes test sd/qa/unit/data/n819614.pptx to fail as text is left
aligned, while it should be centered
Reproduced in
Version: 7.0.0.0.alpha0+
Build ID: 6b4fe3e44b4daa89fef6a3385919b00472eaed60
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3;
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200124/d473e987/attachment.htm>
More information about the Libreoffice-bugs
mailing list