Bug 143590 - Aspect ratio of pasted screenshot changes although it should not do so
Summary: Aspect ratio of pasted screenshot changes although it should not do so
Status: RESOLVED DUPLICATE of bug 143633
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2021-07-28 16:47 UTC by Adalbert Hanßen
Modified: 2021-08-28 14:13 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
file describes the bug and shows it practically (189.87 KB, application/vnd.oasis.opendocument.text)
2021-07-28 16:47 UTC, Adalbert Hanßen
Details
Example showing the bug (386.71 KB, application/vnd.oasis.opendocument.text)
2021-08-14 16:07 UTC, Adalbert Hanßen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adalbert Hanßen 2021-07-28 16:47:28 UTC
Created attachment 173928 [details]
file describes the bug and shows it practically

This bug report pertains to
Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: e0c4cdf9a874bb40f028a26562e6399d39cb2c0f
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-05-29_20:31:52
Calc: threaded

When I paste a screenshot from the clipboard into a LibreOffice Writer document, it happens anchored "at the character" these days.

But I would rather anchor images to the paragraph. Therefore it often happens that I double-click the image immediately and then first lock the aspect ratio, then anchor the image to the paragraph and then manually make sure both times that it says the vertical and horizontal position relative to the paragraph text should apply (I would prefer it it was preset such that this selection shown in the next image is always the right away. I have to do it by hand every time).

The last step is usually to resize the width of the screenshot to a certain number of cm, e.g. 14 cm in the screenshot above. The aspect ratio of this screenshot got wrong!

In the development version it often happens that the width is taken over, but the height linked with it is not adapted to the new width! So the aspect ratio gets mixed up. I have the impression that the image is often one and a half to two times as high as it should be, but I may be wrong with that.
This error was not in earlier versions of LO Writer! It must be new.
Comment 1 Dieter 2021-08-12 07:22:19 UTC
I can't confirm it with

Version: 7.2.0.1 (x64) / LibreOffice Community
Build ID: 32efc3b7f3a71cfa6a7fa3f6c208333df48656cc
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Steps
1. Make a screenshot
2. Open an new document and insert screenshot
3. Image is anchored to character by default and checkbox "keep ratio" is active
4. Change anchor to paragraph
5. Resize width => height also changes and ratio is kept => O.K.


BTW: Adalbert, please try to report bugs in the normal way:

Steps to reproduce:
1. ....
2. ...
3. ...

Actual result:

Expected result:

Please keep report as short as possible
Comment 2 Adalbert Hanßen 2021-08-14 16:07:41 UTC
Created attachment 174277 [details]
Example showing the bug
Comment 3 Dieter 2021-08-15 11:15:00 UTC
Thank you I can confirm this and it is not related to screenshots

Steps to reproduce:
1. open a new document and insert an image
2. Double click on image => image dialog => Tab "Type": See that "Keep ratio" is selected by default
3. Press O.K.

Result: Aspect ratio of image changes

Additional information
Height and Width after step 3 have the same values like they have after changing anchor "to paragraph" (if you d that after step 2)



Tested with

Version: 7.2.0.3 (x64) / LibreOffice Community
Build ID: 2a7ea282da28d665a7dc086360567b4aea27bf08
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

and with

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 23f17b7ea6fbd2f422c7e40192ae60e4df25224c
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

but not with

Version: 6.3.6.2 (x64)
Build-ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: CL

Lo 6.3: Aspect ratio isn't selected by default and anchor ist to paragraph (and not to character)
Comment 4 Buovjaga 2021-08-26 09:59:01 UTC
(In reply to Adalbert Hanßen from comment #2)
> Created attachment 174277 [details]
> Example showing the bug

I repro with the latest commit of 7.3 repo which is Mon Aug 23 15:43:50 2021 +0200, but I do not repro with my own build which is newer. Might have to wait for an update to the repo to see what's up.

Arch Linux 64-bit
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: c6883e7a031dec5fe3a365c4fd6adccff09696e5
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 25 August 2021
Comment 5 phv 2021-08-28 13:50:51 UTC
*** Bug 144068 has been marked as a duplicate of this bug. ***
Comment 6 phv 2021-08-28 13:54:30 UTC
I confirm the bug is present (and very annoying) on version 7.2.0.4 and I think it came with LibreOffice version 7.2.0.0.

The bug has been fixed in version 7.3.0.0 alpha with the corrective for #143633 as both issues seems to be linked.
Comment 7 Buovjaga 2021-08-28 14:13:22 UTC
Thanks, makes sense, let's close as dupe

*** This bug has been marked as a duplicate of bug 143633 ***