Bug 138314

Summary: Undo of insert eats my text
Product: [Applications] calligraformula Reporter: Thomas Zander <zander>
Component: generalAssignee: Alfredo Beaumont <alfredo.beaumont>
Status: RESOLVED FIXED    
Severity: normal CC: alfredo.beaumont
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thomas Zander 2006-12-03 22:36:49 UTC
Version:           1.6.1 (using KDE 3.5.5, Kubuntu (edgy) 4:3.5.5-0ubuntu3)
Compiler:          Target: x86_64-linux-gnu
OS:                Linux (x86_64) release 2.6.15-26-amd64-generic

Open a random odf/mml file.
Press the button on the toolbar to insert the 'Add Sum' character.

Press undo.
* Note that the 'Add Sum' character is still there.
* Note that at least one character that was there previously is now missing.
Comment 1 Alfredo Beaumont 2007-01-17 16:20:16 UTC
SVN commit 624649 by abeaumont:

Fix deletion of symbol elements

BUG: 138314


 M  +1 -1      formulacursor.cc  


--- branches/koffice/1.6/koffice/lib/kformula/formulacursor.cc #624648:624649
@@ -391,7 +391,7 @@
         mainChild->selectAllChildren(this);
         remove(childrenList);
     }
-    element->getParent()->moveRight(this, element);
+    element->getParent()->selectChild(this, element);
     setSelection(false);
     remove(list);
     insert(childrenList, direction);