Bug 122738 - Text box size changes upon saving and reloading
Summary: Text box size changes upon saving and reloading
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.2.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-15 16:19 UTC by Maurizio
Modified: 2020-01-28 22:54 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Label with different shape (127.02 KB, image/jpeg)
2019-01-15 17:06 UTC, Maurizio
Details
File example (11.06 KB, application/vnd.oasis.opendocument.graphics)
2019-01-18 19:32 UTC, Maurizio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maurizio 2019-01-15 16:19:34 UTC
Description:
Hello,

during the use of Draw, it would be very useful to add a tool able to block an image or another object avoiding to involuntary drag it.

In addition, every time I open some draw, some rectangular labels have lost their shape and should be re-adapted again to the original size.

Steps to Reproduce:
For the label:
1. close the project with a label (a filled rectangle under a letter for example)
2. open the project
3. modify it, save
4. close and open again (every time the same result)

Actual Results:
first problem: objects like rectangle change shapes every time I reopen the project.
second problem: involuntary dragging of objects, when working on an image with multiple objects




Expected Results:
Fix the change of shape.
Add the block-object tool


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
rectangular labels lose their shape 

involuntary dragging of objects, when working on an image with multiple objects
Comment 1 Maurizio 2019-01-15 17:06:27 UTC
Created attachment 148343 [details]
Label with different shape

screenshots of the image with labels after re-opening the project.
Comment 2 Xisco Faulí 2019-01-17 11:27:53 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 3 Regina Henschel 2019-01-17 12:12:24 UTC
(In reply to Maurizio from comment #0)
> during the use of Draw, it would be very useful to add a tool able to block
> an image or another object avoiding to involuntary drag it.

For that purpose Draw has layers. Put the objects you want to block on an own layer and set the layer to "locked". In case you need help for that, use the channels mentioned on https://www.libreoffice.org/get-help/community-support/

For the label problem, we need an example document.
Comment 4 Maurizio 2019-01-18 19:32:12 UTC
Created attachment 148429 [details]
File example

Just try to open the file to see the problem.
The labels should be smaller, modify them, save and close.

Once open the file again, the labels will be bigger.

Best 

m
Comment 5 Buovjaga 2019-07-13 15:39:20 UTC
(In reply to Maurizio from comment #4)
> Created attachment 148429 [details]
> File example
> 
> Just try to open the file to see the problem.
> The labels should be smaller, modify them, save and close.
> 
> Once open the file again, the labels will be bigger.

By labels, I guess you mean the text boxes. I modified their size to be smaller, saved and reloaded and there was no change.

Please re-test with 6.2.x or 6.3

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 6 Maurizio 2019-07-15 17:37:53 UTC
Hello,

yes the text boxes.. I have downloaded again the file attached, now I'm using the version 6.2.4.2 (x64), and the problem is still present. The text boxes are bigger than the text, I've tried to resize them, save, open again the .odg file and the changes are not maintained.
Comment 7 Regina Henschel 2019-07-15 21:04:14 UTC
The text and the white background are two different objects in your example document.
The white background rectangle is a text frame with the settings "Fit width to text" and "Fit height to text". But is does not have any text content. You should delete these background rectangles and set the background on those shapes, which actually have text content.
Comment 8 Buovjaga 2019-07-16 04:12:48 UTC
(In reply to Regina Henschel from comment #7)
> The text and the white background are two different objects in your example
> document.
> The white background rectangle is a text frame with the settings "Fit width
> to text" and "Fit height to text". But is does not have any text content.
> You should delete these background rectangles and set the background on
> those shapes, which actually have text content.

Regina is right, of course. I should have asked about this: Maurizio, have you created this box layout consciously? In my comment 5, I was resizing the text boxes that have text, not the rectangles with white background. Actually, I did test resizing the white rectangles separately, but there was no problem with them either.
Comment 9 Maurizio 2019-07-16 10:40:42 UTC
Hi Regina and hi Buovjaga,

yes the problem I have is in the rectangles with white background that I have created below the text boxes. 


^Actually, I did test resizing the white rectangles separately, but there was no problem with them either.

I'm continuing to have this problem, if I reduce the size approximately a little bigger than the text boxes, once I close and launch again the odt file, it does not maintain the changes. It's curious that I'm the only one having this issue. I can provide you a couple of images if needed. 

Thank you for your support.

M.
Comment 10 Xisco Faulí 2020-01-20 16:05:52 UTC
Hello Maurizio,
A new major release of LibreOffice is available since this bug was reported.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 11 Maurizio 2020-01-28 14:17:42 UTC
The issue is fixed. However, the boxes created with the old software version still have this problem. But, after creating new ones and saving the file everything works perfectly now. Thank you!
Comment 12 Buovjaga 2020-01-28 22:54:47 UTC
Thanks. Let's use WFM as we don't know the commit