Bug 157108 - "New Style From Selection" for Frames does not seem to copy properties
Summary: "New Style From Selection" for Frames does not seem to copy properties
Status: RESOLVED DUPLICATE of bug 36535
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles-Frame
  Show dependency treegraph
 
Reported: 2023-09-05 23:48 UTC by Jim Avera
Modified: 2023-09-21 03:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
demo.odt (13.62 KB, application/vnd.oasis.opendocument.text)
2023-09-05 23:49 UTC, Jim Avera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2023-09-05 23:48:09 UTC
Description:
I]m wondering if I fundamentally don't understand something about selecting frames and applying frame styles.

If the border of a frame is clicked and the resize handles appear, is the Frame selected?  Format->Frame and Objects->Properties seems to display the correct props for that frame, so it seems to be selected.

HOWEVER, If "New Style From Selection" is then performed in the Styles panel, the resulting named style is not the same as what is shown in Properties of the selected Frame.   Shouldn't it be?


Steps to Reproduce:
1. Open attached demo.odt
2. View->Styles
3. Select the frame containing "In original Frame"

   Format->Frame and Objects->Properties
     ==> Confirm that Anchor is set to "As character"
   Close the Properties dialog
   
5. In the Style panel: click the 3rd icon to select "Frame" styles
6. In the Styles menu (tiny triangle at upper right),
     do "New Style from Selection". Give it a name.

7. Select the new Frame style; rightclick->Edit Style
   Click the "Type" tab


Actual Results:
The new style has Anchor set to "To paragraph"

Expected Results:
Anchor "As character", as it is in the Frame the style was created from


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 78d9d0d8dccb6fd8952435b8a13d525c7606f467
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Jim Avera 2023-09-05 23:49:03 UTC
Created attachment 189375 [details]
demo.odt
Comment 2 Dieter 2023-09-20 06:36:35 UTC
I confirm it with

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a4522ef5ce6a625054d83ec907aee07c156e94ed
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (de_DE); UI: en-US
Calc: CL threaded

Additional information
Anchor "As Character" is direct formatting. But new style from selection should take that into account, becuase it works for example with direct formatting of frame area

But it looks to me like a duplicate of bug 36535. Feel free to change it back to NEW with a short reasoning, if you disagree.

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