Bug 124610 - in word processor when copying/cutting and inserting and undoing it text gets lost
Summary: in word processor when copying/cutting and inserting and undoing it text gets...
Status: RESOLVED NOT A BUG
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-31 01:52 UTC by Claudio Harringer
Modified: 2006-03-31 17:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Harringer 2006-03-31 01:52:01 UTC
Version:           unknown (using KDE 3.5.1, Debian Package 4:3.5.1-2 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.12-1-686

reproduction
============

open koffice's word processor and type in following stuff:
aaa[enter]bbb[enter]ccc[pos1][shift[up]][ctrl-x][up][ctrl-v][ctrl-z]

it should be >
aaa
bbb
ccc
< again but is just >
ccc
<

[pos1] ... jump to beginning of line (on german keyboards)


output of koshell
=================

ASSERT: "lst.count() == 1" in /home/sid-user/koffice/koffice-1.4.2/./lib/kotext/kotextformat.cc (255)
ASSERT: "lst.count() == 1" in /home/sid-user/koffice/koffice-1.4.2/./lib/kotext/kotextformat.cc (255)

happens after [ctrl-v]

ASSERT: "m_oldParagLayout" in /home/sid-user/koffice/koffice-1.4.2/./kword/kwcommand.cc (311)

happens after [ctrl-z]
Comment 1 David Faure 2006-03-31 14:30:56 UTC
On Friday 31 March 2006 01:52, Claudio Harringer wrote:
> aaa[enter]bbb[enter]ccc[pos1][shift[up]][ctrl-x][up][ctrl-v][ctrl-z]

The last operation is "paste", so "undo" undoes the pasting.

> it should be >
> aaa
> bbb
> ccc
> < again

No, you would need to undo twice; once for undoing "paste" and once for undoing "cut".

> ASSERT: "lst.count() == 1" in /home/sid-user/koffice/koffice-1.4.2/./lib/kotext/kotextformat.cc (255)

Fixed now, but unrelated.
> ASSERT: "m_oldParagLayout" in /home/sid-user/koffice/koffice-1.4.2/./kword/kwcommand.cc (311)

Fixed now, but unrelated.
Comment 2 Claudio Harringer 2006-03-31 17:54:05 UTC
On Fri, Mar 31, 2006 at 12:30:58PM -0000, David Faure wrote:
> > aaa[enter]bbb[enter]ccc[pos1][shift[up]][ctrl-x][up][ctrl-v][ctrl-z]
> 
> The last operation is "paste", so "undo" undoes the pasting.
> 
> > it should be >
> > aaa
> > bbb
> > ccc
> > < again
> 
> No, you would need to undo twice; once for undoing "paste" and once for undoing "cut".


you're right. anyway, pressing it twice doesn't change anything. Instead
it produces the following ouput:

kotext: WARNING: can't locate parag at 1, last parag: 0
koshell: WARNING: can't locate parag at 1, last parag: 0

again:

koshell: WARNING: can't locate parag at 2, last parag: 0

again;

koshell: WARNING: can't locate parag at 1, last parag: 0

and again:

koshell: WARNING: can't locate parag at 1, last parag: 0

> 
> Fixed now, but unrelated.
> 
> Fixed now, but unrelated.
>