Bug 149162 - Enter key pressing adds empty paragraphs above image and it moves the image down instead a new empty paragraph adding below the image
Summary: Enter key pressing adds empty paragraphs above image and it moves the image d...
Status: RESOLVED DUPLICATE of bug 146445
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2022-05-18 20:52 UTC by Roman Kuznetsov
Modified: 2022-05-18 21:18 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Image example for inserting (858.78 KB, image/jpeg)
2022-05-18 21:08 UTC, Roman Kuznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Kuznetsov 2022-05-18 20:52:52 UTC
Description:
Enter key pressing adds empty paragraphs above image and it moves the image down instead a new empty paragraph adding below the image

Steps to Reproduce:
1. Activate AutoCaption feature in Writer using Tools->Options->LireOffice Writer->AutoCaption, check LibreOffice Writer Image on right side
2. Open a new Writer document
3. Select Insert image icon on the toolbar
4. Select some big picture (it should be wider than text area width in the Writer docs) and insert it into the document
5. Enable showing of Formatting Marks by select the Toggle Formatting Marks icon on the toolbar
6. Click in the empty paragraph below inserted image and press Enter key => it inserts the empty paragraph above the image and the imave is moved to down

Actual Results:
Enter key pressing adds empty paragraphs above image and it moves the image down instead a new empty paragraph adding below the image

Expected Results:
Enter key pressing adds empty paragraphs below image and it doesn't move the image down 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.5.2 (x86)
Build ID: a726b36747cf2001e06b58ad5db1aa3a9a1872d6
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL

but no repro in

Version: 6.3.5.2 (x86)
Build ID: dd0751754f11728f69b42ee2af66670068624673
CPU threads: 4; OS: Windows 6.1; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL

=> regression
Comment 1 Roman Kuznetsov 2022-05-18 21:08:19 UTC
I bisected it and got

https://git.libreoffice.org/core/commit/d0aa2dbdf37aefe5b8d096fc5ea50cd13f87c5b0

https://gerrit.libreoffice.org/c/core/+/84513

Added to CC: Miklos Vajna. Could you please take a look? Thanks



btw it's still rerpo in

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c81f4a4ecbfa7dc97d8c28b5ec5f00d1d561b6bb
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL
Comment 2 Roman Kuznetsov 2022-05-18 21:08:41 UTC
Created attachment 180203 [details]
Image example for inserting
Comment 3 Mike Kaganski 2022-05-18 21:18:38 UTC

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