Bug 149452

Summary: "Update selected style" doesn't set frame style's anchor type to match selected object
Product: LibreOffice Reporter: Mike Kaganski <mikekaganski>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: dgp-mail
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=149451
https://bugs.documentfoundation.org/show_bug.cgi?id=81639
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108357    

Description Mike Kaganski 2022-06-04 12:58:09 UTC
In Writer:

1. Insert an image.
2. Select it, and check that its frame style is "Graphics". Check the style's properties, specifically Anchor and horizontal position (both on Type tab) - I see "to paragraph" and "center" respectively by default.
3. Close style properties; open selected image's properties, and set both Anchor and horizontal position types to something different compared to what is set in the style (e.g., make anchor - to character, and horizontal position - left).
4. Having the image selected, and Graphics style selected in the style manager, use drop-down of rightmost toolbar button on the style manager ("Styles actions") to choose "Update selected style".
5. Inspect the style's properties.

Actual results:
* horizontal position of the style is now "Left";
* anchor of the style is still "To paragraph".

Expected: anchor of the style is *also* updated according to the selected object, like horizontal style already does.

Note: the Anchor properties of the frame style are exposed since version 7.2 (commit 5951da5175b9d7e5b3b47bd0d90989d2ef528c79).
Comment 1 Dieter 2022-06-19 04:52:36 UTC
I confirm it with

Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
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

At least related to bug 81639