Bug 149452 - "Update selected style" doesn't set frame style's anchor type to match selected object
Summary: "Update selected style" doesn't set frame style's anchor type to match select...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles-Frame
  Show dependency treegraph
 
Reported: 2022-06-04 12:58 UTC by Mike Kaganski
Modified: 2022-06-19 04:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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