Issue 18014

Summary: wrong cursor position when undoing "insert table row"
Product: Writer Reporter: Frank Schönheit <frank.schoenheit>
Component: uiAssignee: michael.ruess
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P3 CC: caolanm, issues, kpalagin, nicolas.mailhot, rainerbielefeld_ooo_qa, www.openoffice.org
Version: OOo 1.1 RC3Keywords: regression, usability
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
testfile none

Description Frank Schönheit 2003-08-08 08:51:33 UTC
* open a new text document
* insert a manual page break
* on the second page, insert a table (arbitrary dimensions)
* place the cursor in the very last cell of the table
* press Tab
=> a new line is inserted at the end of the table
* press Ctrl-Z, undoing the change this way
=> the line is removed (which is fine), and the cursor is positioned at the very
top of the document

This makes editing larger documents a little bit annoying ...

another scenario: If you insert a new line explicitly (by using the respective
slot in the toolbar), place the cursor in the new line, and UNO this, then the
cursor also jumps to the wrong position. Seems that everytime UNDO deletes the
row where the cursor is currently positioned, the new cursor position is not
properly determined.

Note: When deleting the row directly (via the toolbar slot), then the cursor
position is correct afterwards.
Comment 1 Frank Schönheit 2003-08-08 08:51:53 UTC
targeting
Comment 2 Frank Schönheit 2003-08-11 08:02:13 UTC
sorry, wrong owner
Comment 3 Rainer Bielefeld 2003-08-19 18:26:58 UTC
I still see it in 1.1RC3 german version WIN98SE: 645m15(Build8669)
[CWS:ooo11rc3], so I change Version.

Might be a Problem of all OS? Pls check!


I added oooqa and a testfile for quicktest.

Problem happens for "undo" with "undo-button", too.

Rainer
Comment 4 Rainer Bielefeld 2003-08-19 18:28:43 UTC
Created attachment 8577 [details]
testfile
Comment 5 openoffice 2003-09-25 09:51:50 UTC
.
Comment 6 openoffice 2004-02-03 09:19:07 UTC
*** Issue 24641 has been marked as a duplicate of this issue. ***
Comment 7 openoffice 2004-02-04 08:48:56 UTC
estimated effort
Comment 8 openoffice 2004-02-26 09:35:11 UTC
*** Issue 24201 has been marked as a duplicate of this issue. ***
Comment 9 openoffice 2004-05-17 15:09:01 UTC
P4 => later
Comment 10 Frank Schönheit 2004-05-17 15:35:07 UTC
for the records I have to say that I do not agree to this target because:
- this is a regression over 1.1 (don't we have a rule to not retarget
  regressions?)
- Undo has been declared as major area for OOo 2.0 (see the PCD), as has
  usability. This bug here describes an annoying problem with the usability of
  Undo (try it out - in larger documents, you need *ages* to get back to the place
  where the cursor was before this innocent "undo" command ...)
Comment 11 rblackeagle 2004-05-19 00:13:36 UTC
Workaround (one I use in similar situations): Set a bookmark for the cursor 
location.  Run undo (long right-click so you can skip undoing the bookmark).  
Run undo.  Goto bookmark using Navigator.  Remove bokmark.

A lot of extra work, but less than re-locating the proper location by hand.  
And,yes, it is a regression.  1.1.1 does not do this.
Comment 12 openoffice 2004-05-24 16:29:30 UTC
*** Issue 28328 has been marked as a duplicate of this issue. ***
Comment 13 Frank Schönheit 2004-06-11 11:00:23 UTC
> Workaround (one I use in similar situations): Set a bookmark for the cursor 
> location.  Run undo (long right-click so you can skip undoing the bookmark).  
> Run undo.  Goto bookmark using Navigator.  Remove bokmark.

Ever tried to do this with keyboard only?

The current behavior is a *major* break in the user's (okay: in my) workflow,
when you're used to work with the keyboard instead of the mouse. You need ages
to restore your "work environment" (the cursor position, in this case) just
because of a small innocent Ctrl-Z ... :(
Comment 14 haxwell 2005-02-07 20:37:02 UTC
*** Issue 25665 has been marked as a duplicate of this issue. ***
Comment 15 haxwell 2005-02-07 20:43:49 UTC
The cursor also jumps to the top of the document when a column is removed. 

Marking issue 39609 as a duplicate of this issue.
Comment 16 haxwell 2005-02-07 20:44:58 UTC
*** Issue 39609 has been marked as a duplicate of this issue. ***
Comment 17 haxwell 2005-02-07 20:46:49 UTC
*** Issue 20410 has been marked as a duplicate of this issue. ***
Comment 18 tepich 2005-08-04 08:58:11 UTC
Issue 37748 is also a duplicate of this issue, I think...
Comment 19 lohmaier 2005-08-04 19:36:06 UTC
*** Issue 37748 has been marked as a duplicate of this issue. ***
Comment 20 ortizs 2005-12-07 12:19:12 UTC
   I can confirm that this also happens in OpenOffice 2.0!

   I use Debian GNU/Linux (sid). Package openoffice.org_2.0.0-4.
Comment 21 michael.ruess 2005-12-08 07:33:48 UTC
*** Issue 59063 has been marked as a duplicate of this issue. ***
Comment 22 michael.ruess 2007-05-11 09:30:39 UTC
*** Issue 77235 has been marked as a duplicate of this issue. ***
Comment 23 michael.ruess 2007-05-31 09:47:17 UTC
*** Issue 77940 has been marked as a duplicate of this issue. ***
Comment 24 michael.ruess 2007-06-22 07:23:09 UTC
*** Issue 78777 has been marked as a duplicate of this issue. ***
Comment 25 vogella 2007-06-22 07:54:21 UTC
This still happens with OO 2.2.1. Can you update the version? (As this is
really, really an old issue and it seem that noone looks anymore at OO1.1 bugs.)
Comment 26 Frank Schönheit 2007-06-22 12:45:35 UTC
There's a rule that "Version" describes the version where this issue was first
encountered, and should not be changed then.
However, "Version" is usually not used when judging which issues to "fix next".
Instead, votes, for instance, are important. So, lobby for the issue and get
some people to vote for it.

Given the number of duplicates which we collected over time, I take the liberty
to increase the priority. Also, I add the keywords which I missed in the
original submission.
Comment 27 openoffice 2007-06-25 10:08:36 UTC
AMA is responsible for undo know.
Comment 28 Martin Hollmichel 2007-08-21 07:27:17 UTC
@ama: given the high number of votes and duplicates we should reconsider the target.
Comment 29 andreas.martens 2007-08-21 16:22:39 UTC
Set target to OOo2.x
Comment 30 michael.ruess 2007-10-08 13:19:38 UTC
*** Issue 82241 has been marked as a duplicate of this issue. ***
Comment 31 michael.ruess 2007-10-12 13:49:32 UTC
*** Issue 82547 has been marked as a duplicate of this issue. ***
Comment 32 michael.ruess 2007-10-12 13:52:38 UTC
MRU->AMA: having a look at the duplicates-tail, might it be possible to fix this
in the OO2 branch?
Comment 33 andreas.martens 2007-10-12 17:27:18 UTC
I'll do my best ;-)
Comment 34 andreas.martens 2007-11-20 10:16:35 UTC
Fixed in CWS sw8u10bf02
crsrsh.cxx
Comment 35 andreas.martens 2007-12-04 09:16:42 UTC
Ready for QA.
Comment 36 michael.ruess 2007-12-10 15:03:33 UTC
Verified fix in CWS sw8u10bf02.
Comment 37 michael.ruess 2008-02-20 16:20:00 UTC
Checked fix in OOH680m7 and SRC680m245.
Comment 38 corigo 2008-03-11 10:05:00 UTC
This bug is back in 2.3.1 
Comment 39 michael.ruess 2008-03-11 12:14:40 UTC
This bug cannot be "back" in OO 2.3.1. It was fixed for OO 2.4, as everyone
could see from the "Target milestone"...