[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: kpresenter crash
From: Thorsten Zachmann <mo () zagge ! de>
Date: 2002-07-23 5:35:31
[Download RAW message or body]
Hello all
I found a crash in kpresenter. To reproduce:
create a text object.
put some text in it.
delete text object.
->crash
It looks like this is not crashing on every system. A patch witch solves the
problem is attached.
Is it ok to commit?
Thorsten
["patch17" (text/x-diff)]
Index: kprcommand.cc
===================================================================
RCS file: /home/kde/koffice/kpresenter/kprcommand.cc,v
retrieving revision 1.127
diff -u -3 -p -r1.127 kprcommand.cc
--- kprcommand.cc 2002/07/22 07:57:29 1.127
+++ kprcommand.cc 2002/07/23 05:30:44
@@ -398,7 +398,7 @@ void DeleteCmd::execute()
objects.at( i )->removeFromObjList();
if(objects.at(i)->getType()==OT_TEXT)
{
- KPTextObject * tmp = dynamic_cast<KPTextObject *>(tmp);
+ KPTextObject * tmp = dynamic_cast<KPTextObject *>( objects.at( i ) );
if ( tmp )
tmp->setEditingTextObj( false );
textObj=true;
____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic