Created attachment 121205 [details] Bugdoc for demonstration - load and see For text fields from PowerPoint that are too small for text (format text box to not autmatically resize and type much text) the imported text is wrong. To reproduce: - import attacted bugdoc -> the text should be inside the added lines Office is already capable of text boxes which have 'overhanging' text, that was already added in the past. Still, the import is wrong in this case. Selecting the text box (press TAB) and choosing 'Format/Text...' from menu (or context menu) and changing anchor to top-left cures this. There seems to be an error in the importer for this cases with text anchoring.
Confirmed with recent master.
Taking a look. As first, I saw that in curent versions the important format/text slot and settings is not editable in impress, wrote tdf#96478 for it. Taking a look at the import...
All has to do with SvxAdjustItem, but not sure yet what happens. That item is already extra-handled on many places. In the EditEngine ItemPool (where it lives for SfxModels) it is initialized to SVX_ADJUST_LEFT (see GlobalEditData::GetDefItems()), but there is TextProperties::ForceDefaultAttributes() which sets SvxAdjustItem for all non-text frames to SVX_ADJUST_CENTER as hard attribute, so it will not react on style settings.
Basic problem is the different defaultfor alignment of non-growing text boxes (and it is not possible to create those CustomShape TextBoxes in LO using the UI). LO uses Top-Center while PPT uses Top-Left. At import of the token 'AnchorCtr' the importer sets TextHorizontalAdjust_CENTER. That token is only set if not top-left in PPT. This means that we need to set TextHorizontalAdjust_LEFT when that token is not set and nothing when set (center is already the default). That works well at import. Changing our default is not a good idea since that would lead to problems with our own existing files. Additionally that needs to be taken into account at save time, checking where to do that...
Checked, exportneeds no change. Import needs to set either/or. Had a pptx which needed repair after re-export, removed my changes again and checked, this also happens without my changes. Looking in some details...
Cannot do as proposed, that influences text boxes which have the flag for adapting size not switched off. Checking deeper for differences in pptx.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.1.6 or 5.2.3 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20170103
Bug no longer reproducible in Version: 6.0.0.0.alpha1+ Build ID: 38a8157d9447134913d88c6c373d99a7aa472857 CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); Calc: group Closing as RESOLVED WORKSFORME [Improvement found by office-interoperability-tools]