https://bugs.freedesktop.org/show_bug.cgi?id=69270

          Priority: medium
            Bug ID: 69270
          Keywords: regression
          Assignee: libreoffice-bugs@lists.freedesktop.org
           Summary: FORMATTING: Croping scaled SVG images does not work
                    properly [Regression]
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: bvit...@yahoo.com
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.0.0.3 release
         Component: Writer
           Product: LibreOffice

Created attachment 85718
  --> https://bugs.freedesktop.org/attachment.cgi?id=85718&action=edit
Example document with inserted SVG picture, SVG picture itself and screenshots
of the document and crop settings in various versions of LO Writer.

Problem description: 

Steps to reproduce:
1. Open the "Front_page.odt" document found in attached zip archive.

Current behavior:

As of version 4.0.x of LO Writer, inserted SVG pictures are not croped properly
if scaled. They are croped properly only if left in original scaling. Also, it
seems only SVG pictures are affected, or maybe only vector images, because
inserted PNG pictures do not exhibit this behavior.

In attached zip archive you will find screenshots of "Front_page.odt" file as
it is displayed in LO Writer 3.6.7, 4.0.5 and 4.1.1 along with screenshots of
settings in "Crop" dialog. The document is correctly displayed only in version
3.6.7 of LO Writer. Later versions display it incorrectly. Version 4.1.1 of LO
Writer additionally displays the picture in color instead of light gray which
is another bug I'll report separately.

It seems as if the order of operations - croping and scaling - is reversed in
4.0.x and later versions. Croping is done after upscaling so croping amount of,
for example, 0.5cm is relative to upscaled size of the picture, for example
15x15cm. On the other hand, in version 3.6.7 croping amount is relative to
original size of the picture (around 2x2cm) and upscaling is done after
croping. The problem with versions 4.0.x and later is that they show the same
croping preview (in "Crop" dialog) as version 3.6.7 but document is displayed
differently than what is shown in the preview. Additionally, croping values in
4.0.x and later can not be larger than 2cm or so because that is the original
size of the picture.

Expected behavior:

LO Writer versions 4.0.x and later should display the attached document the
same way as version 3.6.7.
Operating System: Ubuntu
Version: 4.0.0.3 release
Last worked in: 3.6.7.2 release

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to