<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILEOPEN: PPTX: anchorCtr="0" is imported as TextHorizontalAdjust_CENTER"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=130182">130182</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FILEOPEN: PPTX: anchorCtr="0" is imported as TextHorizontalAdjust_CENTER
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.5.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Impress
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>xiscofauli@libreoffice.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=157413" name="attach_157413" title="sample file">attachment 157413</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=157413&action=edit" title="sample file">[details]</a></span>
sample file

Found while investigating <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FILEOPEN: PPTX: Incorrect paragraph alignment in shape"
   href="show_bug.cgi?id=129685">bug 129685</a>

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
<a href="https://opengrok.libreoffice.org/xref/core/oox/source/drawingml/textbodypropertiescontext.cxx?r=a7f28581#80">https://opengrok.libreoffice.org/xref/core/oox/source/drawingml/textbodypropertiescontext.cxx?r=a7f28581#80</a>

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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>