Bug 145785 - Is it OK that frame styles based on "None" are trying to be anchored to the page?
Summary: Is it OK that frame styles based on "None" are trying to be anchored to the p...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-20 01:45 UTC by John
Modified: 2023-01-20 08:21 UTC (History)
2 users (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 John 2021-11-20 01:45:27 UTC
Description:
Create a new document. Type "hello" and press the Enter key twice. In the menu bar, click "Insert", then select "Frame", "Frame". There will be opened a window with the settings of the frame. Note the settings in the "Position" section of the "Type" tab:

Horizontal: Center, Paragraph area
Vertical: Top, Paragraph text area

Adjust the width: Width = Relative to paragraph area, 100%
and then click OK to insert the frame.

Then select it and create a new frame style based on it by using the "New Style from Selection" option on the "Styles" pane. Call this style, for example, Foo. Note that the Foo style is currently based on the Frame style.

Delete the existing frame.

Create a new frame, but don't adjust its properties manually, and instead apply the Foo style to it.

Everything will be fine. Then save the document, close it, and open again. Everything will be fine. 

Then open the properties of the Foo style, select the "Organizer" tab, and change the value of "Inherit from" from "Frame" to "None". Save the document, close it, and open again. You will see that the frame is now on the very top of the page, that is, **above** the "hello", and its horizonatl and vertical options has changed:

Horizontal: Center, Entire page
Vertical: Top, Page text area

I don't know whether this is a bug, but this is very strange.

Steps to Reproduce:
-

Actual Results:
-

Expected Results:
-


Reproducible: Always


User Profile Reset: No



Additional Info:
-
Comment 1 John 2021-11-20 10:38:51 UTC
A shorter way to reproduce it:

1. Create a new document, type "hello" on the first line, create a frame of below it, change the width of the frame to "relative to paragraph, 100%",

2. create a style from this frame, and set it to be inherited from "None",

3. create a second frame below the first, apply the newly created style to it (everything is fine, yet),

4. Save, close, and open the document. You will see that both frames had moved **above** the word "hello".
Comment 3 sdc.blanco 2022-06-30 00:32:34 UTC
Do not reproduce (e.g., on reopening, anchors do not change from "to paragraph", position remains the same, and under the anchored paragraph).

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 Buovjaga 2023-01-20 08:21:14 UTC
Reading the last messages in the Ask LibO thread, it seems this can be closed.