Download it now!
Bug 108777 - Undo doesnt work after setting 'Resize shape to fit text'
Summary: Undo doesnt work after setting 'Resize shape to fit text'
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Undo-Redo Text-Attributes-Dialog Shape-Textbox
  Show dependency treegraph
 
Reported: 2017-06-25 22:18 UTC by Yousuf Philips (jay) (retired)
Modified: 2020-10-27 12:30 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 Yousuf Philips (jay) (retired) 2017-06-25 22:18:12 UTC
Steps:
1. Open Writer
2. Draw a shape
3. Double-click on shape to enter edit mode and type some words
4. Right-click > Text Attributes or Format > Text Box and Shape > Text Attributes
5. Check 'Resize shape to fit text' and click 'OK'
6. Click outside of the shape to leave edit mode
7. Press undo
8. Text gets removed, shape doesnt return to original size, and 'Resize shape to fit text' is still enabled

Version: 6.0.0.0.alpha0+
Build ID: 1f4d7fc8618828222d7f4447daed4c3361edeea6
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Xisco Faulí 2017-06-26 11:59:48 UTC
Confirmed in

Version: 6.0.0.0.alpha0+
Build ID: 08f6f9dded1b142b858c455da03319abac691655
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 2 QA Administrators 2018-11-26 03:36:19 UTC Comment hidden (obsolete)
Comment 3 Gerald Pfeifer 2018-11-26 07:31:49 UTC
This bug is still present, Version: 6.1.3.2.
Comment 4 QA Administrators 2019-11-27 03:45:37 UTC Comment hidden (obsolete)
Comment 5 Gerald Pfeifer 2019-11-27 10:48:39 UTC
Still present in Version: 6.5.0.0.alpha0+
Build ID: 122468bf97f1ea456274991103a13489b8d5df58
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-11-22_13:38:19
Comment 6 Gerald Pfeifer 2020-03-28 10:37:50 UTC
This appears to have been fixed since I last tested in November 2019.

Version: 7.0.0.0.alpha0+
Build ID: 4bca67d21e418eb3981cd63390bf2cb401dabe13
CPU threads: 4; OS: Linux 5.5; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-03-08_02:59:34
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 7 Xisco Faulí 2020-03-30 09:40:01 UTC
Still reproducible in

Version: 7.0.0.0.alpha0+
Build ID: 9b784a74a2f09e9eb9a0fd41d58c1f6b47ee6ee6
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

@Gerald, could you please double check it ?
Comment 8 Gerald Pfeifer 2020-03-30 11:54:43 UTC
(In reply to Xisco Faulí from comment #7)
> Still reproducible in
> 
> Version: 7.0.0.0.alpha0+
> Build ID: 9b784a74a2f09e9eb9a0fd41d58c1f6b47ee6ee6
> CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
> Locale: en-US (en_US.UTF-8); UI-Language: en-US
> Calc: threaded
> 
> @Gerald, could you please double check it ?

I had done two or three iterations on Saturday before closing it,
but methodically going through this again and again now I believe I
see what is crucial:

 Step 3. Double-click on shape to enter edit mode and type some words

does not make a difference, i.e., simply drawing the shape and typing also
reproduces the issue.

However, *not* selecting the shape again (either by clicking elsewhere and
then selecting the shape, or directly selecting the shape) before 

  Step 4. Format > Text Box and Shape > Text Attributes

is crucial to reproduce.

(On Saturday I did that followed by "Right-click > Text Attributes", in
which case it does not reproduce.  Perhaps remove that option from the
description of Step 4?)

@Xisco, does that make sense?