Bug 56749

Summary: Formatting breaks when inserting formula in writer
Product: LibreOffice Reporter: sjoekvist
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: stgohi-lobugs
Priority: medium    
Version: 3.6.2.2 release   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Image of the error.

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 ***