Bug 149544 - Changing the anchor from 'to character' to 'to paragraph' of a shape doesn't update the placement of the anchoring icon (needs deselect and reselect of the shape)
Summary: Changing the anchor from 'to character' to 'to paragraph' of a shape doesn't ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2022-06-13 08:01 UTC by Telesto
Modified: 2023-04-18 14:32 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (50.65 KB, application/vnd.oasis.opendocument.text)
2022-06-14 13:54 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-06-13 08:01:33 UTC
Description:
Changing the anchor from 'to character' to 'to paragraph' of an shape doesn't update anchoring position (needs deselect and reselect of the shape)

Steps to Reproduce:
1. Open the attached file
2. Select the yellow rectangle
3. Right click -> Anchor to paragraph. Anchor not changing
4. Deselect the rectangle
5. Reselect the rectangle (OK now)

Actual Results:
The to paragraph anchor is applied, but isn't reflected on screen. The anchor should move the left border after changing the anchor. 

Expected Results:
Anchor should jump to the left instantly (compare changing the anchor to 'to paragraph' for an image)


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 089c91b1ad16232f130cb50266732509f83c52eb
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (nl_NL); UI: en-GB
Calc: CL Jumbo

and in
Versie: 4.2.0.4 
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

and in
LibreOffice 3.5.7.2 
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b

and in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 1 Rafael Lima 2022-06-13 22:35:30 UTC
I think you forgot to attach the file you refer to in Step 1.
Comment 2 Telesto 2022-06-14 13:54:46 UTC
Created attachment 180758 [details]
Example file
Comment 3 sdc.blanco 2022-06-19 13:07:56 UTC
Repro

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c0e66cfab12d6c78d68af09498533362724dbd05
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL
Comment 4 Tudor Bocean 2022-06-22 09:25:33 UTC
Reproduced this as well on the following configuration:
Version: 7.2.7.2 (x64) / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2

Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5

Version: 7.4.0.0.beta1 (x64) / LibreOffice Community
Build ID: cec1fe9b57a55c032f9f118c907f34e22a63d040

CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-US
Calc: CL

The two following behaviors have been observed:
- After changing Anchor from To Character to To Paragraph, saving the document as a docx with the World 2007-365 format will result in the Anchor point being the Paragraph, but selected option in Anchor menu still being To Character.
- After changing Anchor from To Character to To Paragraph, changing the wrap to any other option will result in Character still being the Anchor point, despite all the other options in the inserted element Menu changing the position of the anchor to Paragraph

Issue described is more general, it also reproduces for:
- Text box
- Option button
- List box
- Combo box
- Push button
- Image button
- Group box
- Image control
- File selection
- Table control
- Navigation bar
- Fontwork

Does not reproduce with:
- Image
- Chart
Comment 5 Justin L 2023-04-18 14:32:56 UTC
The painting of the anchor point after a change: very low importance.
I note that it DOES repaint for the SwWriter image 1,
but it doesn't repaint for the Draw Object shape 1.