[Libreoffice-bugs] [Bug 135235] New: FILEOPEN DOCX Shape sizes relative to page is imported with rounding errors

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 28 13:59:13 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=135235

            Bug ID: 135235
           Summary: FILEOPEN DOCX Shape sizes relative to page is imported
                    with rounding errors
           Product: LibreOffice
           Version: 4.4.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisectRequest, filter:docx
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: libreoffice at nisz.hu
                CC: nemeth at numbertext.org,
                    regenyi.balazs+libreoffice_bugzilla at gmail.com,
                    szabolcs450 at gmail.com
            Blocks: 104442

Created attachment 163694
  --> https://bugs.documentfoundation.org/attachment.cgi?id=163694&action=edit
Example file from Word

Attached document is a slightly simplified version of the Word2010 Title page
template “Austin”.
It consists of several shapes whose size is set as a percentage value relative
to the page size. Word conveniently shows this on its UI as absolute value too.
When imported to Writer these sizes are converted to an absolute value, with a
slight rounding error:
The shape “Téglalap 34” (background with brownish gradient): 
Width 19.95 cm -> 20.43 cm (+0.48 cm)
Height 28.22 cm -> 28.70 cm (+0.48 cm)
The shape “Téglalap 35” (Blue textbox):
Width 7.77 cm -> 7.96 cm (+0.19 cm)
Height 8.91 cm >  9.06 cm (+ 0.15cm)
The shape “Téglalap 36” (tall white behind the blue and white text boxes)
Width 8.4 cm -> 8.56 cm (+0.16 cm)
Height 20.79 cm -> 21.10 cm (+0.31 cm)

Steps to reproduce:
    1. Open attached document

Actual results:
Shape sizes are slightly larger than in Word.

Expected results:
Shape sizes should be the same as in Word.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: <buildversion>
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL

(I’m not sure about this buildversion string, this is a fresh nightly from
yesterday or so)

Also in:
Verzió: 6.0.0.3
Build az.: 64a0f66915f38c6217de274f0aa8e15618924765
CPU szálak: 4; OS: Windows 6.3; Felületmegjelenítés: alapértelmezett; 
Területi beállítások: hu-HU (hu_HU); Calc: CL

Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: hu-HU (hu_HU)

Version: 4.4.0.3
Build ID: de093506bcdc5fafd9023ee680b8c60e3e0645d7
Locale: hu_HU

In:
Version: 4.3.0.4
Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0

The textbox-less shape 36 had correct size values, the shapes with textbox were
 imported as frames (with correct sizes)


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=104442
[Bug 104442] [META] OOXML shape (DrawingML and VML) related issues
-- 
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/20200728/b0e64168/attachment.htm>


More information about the Libreoffice-bugs mailing list