Bug 137452 - Reducing the size of a centered or right aligned image results in a gap (works after save and reload)
Summary: Reducing the size of a centered or right aligned image results in a gap (work...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.7.2 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2020-10-13 12:49 UTC by Joao Carvalho
Modified: 2022-11-01 08:56 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
printscreen of the error (gap between reduced image and text) (98.04 KB, image/png)
2022-10-31 16:38 UTC, Joao Carvalho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joao Carvalho 2020-10-13 12:49:10 UTC
Description:
If you reduce the size of an image which is anchored as character and centered, a gap appears between the image and the next line of text. The gap is gone as soon as you insert a new line before the image.

Steps to Reproduce:
1) Open a new Writer text document.
2) Insert a medium size image.
3) Anchor the image as character.
4) Place the cursor to the right of the image, press ctrl-E to align center, press enter to go the next line, and type some text below the image.
5) Select the image with the mouse, click on its bottom-right corner, and reduce its size by about 50%.
6) Note a large gap between the image and text. Now insert a new line before the image and the gap is gone.

Actual Results:
A large gap is inotroduced between the image and text below it.

Expected Results:
There should be no gap after the image is reduced. The text below it should be shifted upwards, toward the image.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.2.2
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded
Comment 1 Dieter 2020-10-29 21:12:48 UTC
I confirm it with

Version: 7.0.2.2 (x64)
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: he-IL (de_DE); UI: en-GB
Calc: threaded

With enabled formatting marks you can see, that there is still a formating mark, but wthiout a function
Comment 2 QA Administrators 2022-10-30 03:46:36 UTC Comment hidden (obsolete)
Comment 3 Dieter 2022-10-30 06:03:24 UTC
Tested several ways, but not sure, if it is a correct reproduction if the problem. For example I don't know, if "place the cursor right of the image" is equal to Wrap setting "After".

Joao, is it possible for you to provide a sample document including steps 1-4? Thank you.

=> NEEDINFO
Comment 4 Joao Carvalho 2022-10-31 16:38:41 UTC
Created attachment 183351 [details]
printscreen of the error (gap between reduced image and text)

The issue remains in 7.4.1.2.

I am unable to provide a sample document as requested by Dieter. When I save the file (with a gap between reduced image and text), then close Libreoffice Writer, and then open the file again, the gap is gone. But I am attaching a printscreen of the error (gap between reduced image and text).

I don't know what "Wrap setting After" means. When I wrote "place the cursor right of the image", what I meant was: "place the mouse pointer to the right of the image and left-click so that the cursor is now to the right of the image".

Issue remains with 

Version: 7.4.1.2
Build ID: 40(Build:2)
CPU threads: 8; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: pt-BR (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 5 QA Administrators 2022-11-01 03:33:49 UTC Comment hidden (obsolete)
Comment 6 Dieter 2022-11-01 08:56:50 UTC
Thank you for screenprint. Now I could still reproduce with

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9cd0f4c2d25462feba0ffcbd906c199273821243
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

and with

Version: 5.4.7.2 (x64)
Build-ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU-Threads: 4; BS: Windows 6.19; UI-Render: GL; 
Gebietsschema: de-DE (de_DE); Calc: CL

Additional informations
Happens only with align centered and right (left and justified works)
Expected result after save and reload