Issue 119160 - Doesn't "undo" text modifications with "returns". Only "returns" are undone & texts are merged
Summary: Doesn't "undo" text modifications with "returns". Only "returns" are undone &...
Status: CLOSED DUPLICATE of issue 119400
Alias: None
Product: Impress
Classification: Application
Component: editing (show other issues)
Version: DEV300m99
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: Alexander
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-31 23:37 UTC by Hossam Ezzat
Modified: 2017-05-20 10:06 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 3.4.0
Developer Difficulty: ---


Attachments
undo_bug (45.51 KB, image/jpeg)
2012-03-31 23:38 UTC, Hossam Ezzat
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Hossam Ezzat 2012-03-31 23:37:45 UTC
If you enter some text with "Enters/Returns/new lines" in-between, then try to re-do the latest modifications you have entered, it fails. Instead, it just undo the returns without removing the text entered in new lines and merge them with upper line text.

Steps to reproduce:
1- Open Impress and create a new empty slide.
2- In the default text box on the stage, enter "test1", then press enter.
3- In the new line, enter "test2", then press enter.
4- In the 3rd line, enter "test3".
5- Don't click outside the text box. Just keep the focus inside the text box.
6- Press control+z and notice the result. the latest "return" is deleted, and the text is merged beside the upper line text.
7- Continue doing control+z, at the end you will have one line says "test1test2test3".

Check screen shot attached.

Note: if you click outside the object to move focus to a different object, The case won't be reproducible. Undo action will just remove the whole modifications done to the text.
Comment 1 Hossam Ezzat 2012-03-31 23:38:35 UTC
Created attachment 77391 [details]
undo_bug
Comment 2 Hossam Ezzat 2012-04-01 00:07:22 UTC
In the first 2 lines, I meant to say "Undo" not "Redo":
If you enter some text with "Enters/Returns/new lines" in-between, then try to
undo the latest modifications you have entered, it fails.
Comment 3 justinrohrman 2012-06-07 17:56:25 UTC
I have successfully reproduced this bug.

Environment:
Windows 7 Home Premium 64bit 

Open Office Version:
3.4.0
AOO340m1(build:9590) - Rev 1325589


STEPS TO REPRODUCE:
1 - Open new empty Presentation

2 - Click slide 1 body to make it editable

3 - Enter the following text (hit Enter button after each word):
test1
test2
test3

4 - Hit ctrl + z on the keyboard (undo)

NOTE: last new line is removed

5 - Hit ctrl + z once more

NOTE: first newline is removed
      all text will appear on one line now

NOTE: similar behavior is seen when using TAB rather than ENTER
      with each ctrl + z use, a tab is removed

Expected behavior:
Undo should undo the last event, in this case it is ignoring the last typed character or word and undoing the last newline or tab while preserving typed characters. In the absence of a new line or tab (spaces between words for example), this seems to work better.
Comment 4 hanya 2012-06-08 00:30:37 UTC
This problem looks like the same with issue 119400. 
Not only in the text field on Impress.
Comment 5 liuping 2012-09-14 06:32:14 UTC
Build info:AOO3.5_r1384214

OS: win7 64 bit  
Reproduce steps:
1 - Open new empty Presentation

2 - Click slide 1 body to make it editable

3 - Enter the following text (hit Enter button after each word):
test1
test2
test3

4 - Hit ctrl + z on the keyboard (undo)

NOTE: last new line is removed

5 - Hit ctrl + z once more

NOTE: second newline is removed

6 - Hit ctrl + z once more

NOTE: first newline is removed
   

Pass
Comment 6 Alexander 2013-01-11 19:56:47 UTC
Appears to be duplicate of Resolved bug 119400.
Comment 7 Alexander 2013-01-11 19:57:44 UTC
Appears to be duplicate of Resolved bug 119400.

*** This issue has been marked as a duplicate of issue 119400 ***