Bug 56749 - Formatting breaks when inserting formula in writer
Summary: Formatting breaks when inserting formula in writer
Status: RESOLVED DUPLICATE of bug 47355
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.2.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-04 18:13 UTC by sjoekvist
Modified: 2024-09-09 01:42 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Image of the error. (4.89 KB, image/png)
2013-03-16 15:46 UTC, sjoekvist
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sjoekvist 2012-11-04 18:13:24 UTC
Hello,

I'm using writer a lot to type formulas for university and just recently updated from 3.4 to 3.6 hoping it would not slow down over time while inserting formulas.

The new problem in 3.6 is:
I insert a formula and start typing. It gets evaluated on the fly as usual.
When evaluation makes the formula object smaller, surrounding objects are not adapted to its smaller size.
I end up having pages of empty space that was created during editing.
To fix this, I have to re-open the document.

Greetings
Comment 1 sjoekvist 2012-11-05 08:29:22 UTC
Adding a space (or any other character) before or after the formula fixes the problem, which means that this is a problem of refreshing the view for the special case of only having a formula object on a line of text.
Comment 2 sjoekvist 2012-11-06 14:31:44 UTC
This problem applies to other kinds of objects too. Resizing a picture that is anchored as character and the only object on the line (no other characters) will make the layout break until a character is inserted on the same line as the object.
Comment 3 A (Andy) 2013-03-16 11:02:45 UTC
Do you have a sample file which you could attach to test it and could you please give more information about all the single steps to reproduce it?
Comment 4 sjoekvist 2013-03-16 15:46:11 UTC
Created attachment 76610 [details]
Image of the error.

I enabled the nonprinting characters to visualize the bug.
Comment 5 sjoekvist 2013-03-16 15:46:27 UTC
(In reply to comment #3)
> Do you have a sample file which you could attach to test it and could you
> please give more information about all the single steps to reproduce it?

Steps:
Open LibreOffice Writer (I still have 3.6.2.2) with a default blank document.
Write "Test" on the first line, add two new lines and write "Test" on the last line, leaving the second line empty.
Go to the second line and insert a formula (insert->object->formula).
Type "This is a test newline newline newline", then remove all occurences of "newline" again.

The space taken up by that particular line of text with the formula will be the space the formula took up with its maximum size.
The size of the object will not be re-evaluated unless you 1) re-open the document or 2) add another character to the line with the object (in this case line 2).
Comment 6 A (Andy) 2013-03-16 20:07:53 UTC
@sjoekvist: Thank you very much for your very fast reply.

This bug is reproducible with LO 4.0.1.2 (Win7 Home, 64bit).
Comment 7 Owen Genat (retired) 2013-05-30 02:37:30 UTC
This would appear to be a duplicate of bug #47355 as the issue is the frame handling and not specifically the Formula frame type. I will leave this for the reporter of this bug or a developer to confirm.
Comment 8 sjoekvist 2013-05-30 11:03:24 UTC
(In reply to comment #7)
> This would appear to be a duplicate of bug #47355 as the issue is the frame
> handling and not specifically the Formula frame type. I will leave this for
> the reporter of this bug or a developer to confirm.
Yes, the problem is with the frame itself.
Comment 9 Owen Genat (retired) 2013-06-01 12:33:59 UTC

*** This bug has been marked as a duplicate of bug 47355 ***
Comment 10 Marlin Cuvalis 2024-09-09 01:42:50 UTC
The issue you're describing with LibreOffice Writer 3.6 where surrounding objects don't adapt to changes in formula size is a known bug. It has been reported and is being investigated by the development team.
Here are some workarounds you can try while the bug is being fixed:
1. Manual Adjustment: After editing a formula and its size changes, manually adjust the spacing around the formula to ensure it fits properly within the document layout.
2. Disable Automatic Evaluation: Temporarily disable automatic formula evaluation to prevent the issue from occurring. You can enable it again once you've finished editing the formula.
3. Use a Different Layout: Experiment with different page layouts or paragraph styles to see if they can help mitigate the problem.
4. Save and Reopen: As you mentioned, saving and reopening the document can sometimes resolve the issue.
URL: https://basketballstarsfree.com
Thank you!