Issue 92778 - wrong sequence on undo
Summary: wrong sequence on undo
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.0 Beta
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: oooqa
Depends on:
Reported: 2008-08-13 21:02 UTC by meywer
Modified: 2013-08-07 14:44 UTC (History)
3 users (show)

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


Note You need to log in before you can comment on or make changes to this issue.
Description meywer 2008-08-13 21:02:56 UTC
- starting a line by a small character
- pressing return
- autocorrect makes the first character a capital
- pressing ctrl+z (undo)

what happens:

- OO deletes the new line
- pressing ctrl+z (undo)
- OO makes the first character small again

what should happen:

- OO makes the first character small again
- pressing ctrl+z (undo)
- OO deletes the new line
Comment 1 jbf.faure 2008-08-14 07:25:47 UTC
The behaviour you describe is correct for me. If you type a real sentence with 
several words you can see that it is the first white space which trigger 
autocorrection. So autocorrection comes first and start a new paragraph after. 
And "undo" replays the commands in reverse order.
To summarize for me it is not a bug.
Comment 2 meywer 2008-08-14 07:36:15 UTC
For me its not logical - first should be done, what I do (paragraph end), then
what Oo does (AutoCorrect).
1. If I wouldn't press return, autocorrect would not start, so it cannot be done
before the paragraph end made by me!
2. It's the easiest way to undo autocorrection to press ctrl+z afterwards - but
with this strange sequence it's not (no more ↓) possible!
3. It was always like that in older versions (I think to remember)
Comment 3 michael.ruess 2008-08-14 07:47:15 UTC
Reassigned to ES.
Comment 4 Rainer Bielefeld 2008-08-14 09:35:47 UTC
I checked with "Ooo-dev 3.0.0 Beta Multilingual version German UI WIN XP:
[OOO300m2 (Build9343)]"  and can confirm some inconsistencies in the undo behaviour.

Example 1 (similar to report):
0. make sure that all checkboxes in autocorrect dialogue are checked
1. open new WRITER document
2. type an "a" and then a <space>
   <space> will insert a blank and additionally change "a" to "A"
3. click undo icon:
   result: Blank remains, "A" to "a"
   that's in accordance to meywer's needs

Example 2, verbatim as reported:
Here the cr-lf will not remain, behaviour differs from Example 1

I agree with meywer  that the undo stack seems to be inconsequent in example 2:
Autoccorrect works after initiation by <enter> (or <space>), and so the
autocorrect operation should be the latest one on the undo stack in both cases.
Comment 5 eric.savary 2008-08-19 21:29:04 UTC
ES->AM: please have a look.