Bug 81257 - FILEOPEN DOC: wrong image layout with square wrap - pictures that should be right aligned, appear at top of page (OK if DOC resaved in MSO as DOCX)
Summary: FILEOPEN DOC: wrong image layout with square wrap - pictures that should be r...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc
Depends on:
Blocks: DOC-Images
  Show dependency treegraph
 
Reported: 2014-07-12 06:32 UTC by mahesh patil
Modified: 2023-05-27 16:30 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Images wrong (1.19 MB, application/msword)
2014-07-12 06:32 UTC, mahesh patil
Details
screenshot MS Word Viewer vs. LibO (257.77 KB, image/png)
2014-07-12 07:44 UTC, tommy27
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mahesh patil 2014-07-12 06:32:30 UTC
Created attachment 102660 [details]
Images wrong

images are not positioned properly.
Comment 1 tommy27 2014-07-12 07:44:27 UTC
Created attachment 102662 [details]
screenshot MS Word Viewer vs. LibO

bug reproducible under Win7x64 using 4.2.5.2 and 3.3.0 

same issue on OOo 3.3.0 and AOO 4.1.0, hence bug is inherited from OOo

still reproducible on LibO 4.4 master (11th july build)
Comment 2 Cor Nouws 2014-07-12 10:58:23 UTC
Importing in Writer, Wrap is Parallel and Anchoring at sign.
So it's more that vertical and horizontal position are imported wrong
Comment 3 QA Administrators 2015-07-18 17:42:36 UTC Comment hidden (obsolete)
Comment 4 tommy27 2015-07-19 18:23:56 UTC
still reproducible with LibO 5.1.0.0.alpha1+ (x64)
Build ID: 5a61d7f049a81d6e747d9d097f364ae45f58697b
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2015-07-16_01:06:26
Locale: en-US (it_IT)
Comment 5 QA Administrators 2016-09-20 10:17:49 UTC Comment hidden (obsolete)
Comment 6 Telesto 2016-12-03 20:26:59 UTC
Confirming with:
Version: 5.4.0.0.alpha0+
Build ID: 33f5bc54aaa7fe7aa9335726e30f9c349155e04d
CPU Threads: 4; OS Version: Windows 6.2; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2016-12-01_23:21:05
Locale: nl-NL (nl_NL); Calc: CL
Comment 7 Timur 2018-02-20 12:56:56 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2019-02-21 03:42:35 UTC Comment hidden (obsolete)
Comment 9 Timur 2020-01-30 14:56:30 UTC
Repro LO 7.0+. Images are square wrapped in MSO.
Comment 10 QA Administrators 2022-01-30 03:46:10 UTC Comment hidden (obsolete, spam)
Comment 11 Justin L 2023-05-27 13:54:17 UTC
repro 7.6+
Comment 12 Justin L 2023-05-27 15:55:43 UTC
The problem is that filter/source/msfilter is reading an nYRelTo that has an invalid value - so sw/source/filter/ww8/ww8graf.cxx sets to Entire Page

sal_uInt32 nYAlign = nCntYAlign > rRecord.nYAlign ? rRecord.nYAlign : 1;
Comment 13 Justin L 2023-05-27 16:30:22 UTC
I think ww8par is reading the image data instead of configuration data and just getting random matches for
        if(    maShapeRecords.SeekToContent( rSt,
                                             DFF_msofbtUDefProp,
                                             SEEK_FROM_CURRENT_AND_RESTART )
            && maShapeRecords.Current()->nRecLen )