Bug 115934 - Bad position for rotated images
Summary: Bad position for rotated images
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.1.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 116515 117264 117855 120314 126550 137064 (view as bug list)
Depends on:
Blocks: Writer-Images Image-Dialog
  Show dependency treegraph
 
Reported: 2018-02-22 11:01 UTC by Regina Henschel
Modified: 2021-04-01 09:53 UTC (History)
14 users (show)

See Also:
Crash report or crash signature:


Attachments
rotated image wrong vertical position (13.30 KB, application/vnd.oasis.opendocument.text)
2018-02-22 11:01 UTC, Regina Henschel
Details
rotated shape correct vertical position (11.44 KB, application/vnd.oasis.opendocument.text)
2018-02-22 11:01 UTC, Regina Henschel
Details
Simple document to test behavior (12.16 KB, application/vnd.oasis.opendocument.text)
2018-03-01 18:22 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2018-02-22 11:01:17 UTC
Created attachment 140054 [details]
rotated image wrong vertical position

Open attached document. It contains an image that is anchored to the paragraph before "after". It has the wrap parallel, follow text flow, and vertical align top to paragraph text area. Therefore it should be below the text of the previous paragraph.

Open the second attachment. It has the same settings, but for a shape. There you can see, where the image should be.
Comment 1 Regina Henschel 2018-02-22 11:01:52 UTC
Created attachment 140055 [details]
rotated shape correct vertical position
Comment 2 Regina Henschel 2018-02-22 13:37:07 UTC
It seems, that positioning uses the values from the unrotated image instead of the values from the bounding box.
Comment 3 Jacques Guilleron 2018-02-24 10:29:16 UTC
Hi Regina,

reproduced with
LO  6.0.1.1 (x64) Build ID: 60bfb1526849283ce2491346ed2aa51c465abfe6
Threads CPU : 2; OS : Windows 6.1; UI Render : par défaut; 
Locale : fr-FR (fr_FR); Calc: CL
Rotate 20°.odt is right positionned (but not rotated, obviously) with
LO  5.3.1.1 Build ID: 72fee18f394a980128dc111963f2eefb05998eeb
Threads CPU : 2; Version de l'OS :Windows 6.1; UI Render : par défaut; Moteur de mise en page : nouveau; 
Locale : fr-FR (fr_FR); Calc: CL
Comment 4 Regina Henschel 2018-03-01 16:46:30 UTC
5.3 has no rotated images. This issue is about the new feature in version 6.
Comment 5 Regina Henschel 2018-03-01 18:22:25 UTC
Created attachment 140271 [details]
Simple document to test behavior

The image is set to "right to Paragraph area" and " From top 4cm to Margin".

Rotate the image to 90°.
Expected behavior: The rotated image is positioned at the right edge of the paragraph area and the top edge if 4cm below the start edge of the paragraph.

Drag the image to the right edge of the text area. Notice, that it will jump back.
Comment 6 Regina Henschel 2018-03-01 18:35:58 UTC
Armin, please have a look. It seems, that size and position of the unrotated image is used for layout. In case you have no time to fix it, do you have a pointer where to look?
Comment 7 Regina Henschel 2018-03-04 10:50:58 UTC
The state of the object is inconsistent after rotation. After rotation the alignment can no longer be "right". Rotating a Draw-image, which had alignment "right", the alignment changes to "From left". That should be done here too.
Comment 8 Regina Henschel 2018-05-03 10:43:01 UTC
*** Bug 117264 has been marked as a duplicate of this bug. ***
Comment 9 Regina Henschel 2018-05-28 23:14:28 UTC
*** Bug 117855 has been marked as a duplicate of this bug. ***
Comment 10 Regina Henschel 2018-11-05 21:55:21 UTC
*** Bug 116515 has been marked as a duplicate of this bug. ***
Comment 11 Regina Henschel 2019-07-26 11:07:53 UTC
*** Bug 126550 has been marked as a duplicate of this bug. ***
Comment 12 ajlittoz 2020-06-04 21:26:27 UTC
See if bug 125594 is a duplicate of this one
Comment 13 Dieter 2020-09-27 06:05:01 UTC
*** Bug 137064 has been marked as a duplicate of this bug. ***
Comment 14 Telesto 2021-01-03 16:59:02 UTC
(In reply to Regina Henschel from comment #5)
> Created attachment 140271 [details]
> Simple document to test behavior
> 
> The image is set to "right to Paragraph area" and " From top 4cm to Margin".
> 
> Rotate the image to 90°.
> Expected behavior: The rotated image is positioned at the right edge of the
> paragraph area and the top edge if 4cm below the start edge of the paragraph.
> 
> Drag the image to the right edge of the text area. Notice, that it will jump
> back.

@Regina
Are comment 0 and comment 5 about exactly the same thing. I'm free to move the image with LibO 5.4. The second example appears to be a regression, IMHO
Comment 15 Dieter 2021-04-01 09:53:04 UTC
*** Bug 120314 has been marked as a duplicate of this bug. ***