[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: [PATCH] Crash fix when editing a document with tables
From: Matt Rogers <matt.rogers () kdemail ! net>
Date: 2003-11-23 6:41:43
[Download RAW message or body]
Hi,
The attached patch fixes a crash upon open when editing a document with
tables. Please review, and if all is well, then I can commit (or somebody
else can, don't matter to me). I'm subscribed, so no need to CC. :)
Matt
--
There is no spoon.
["kword_table_crash.patch" (text/x-diff)]
? kword_table_crash.patch
Index: kwtableframeset.cc
===================================================================
RCS file: /home/kde/koffice/kword/kwtableframeset.cc,v
retrieving revision 1.256
diff -u -p -r1.256 kwtableframeset.cc
--- kwtableframeset.cc 5 Nov 2003 13:25:59 -0000 1.256
+++ kwtableframeset.cc 23 Nov 2003 06:17:19 -0000
@@ -2623,9 +2623,12 @@ void KWTableFrameSetEdit::setCurrentCell
m_currentFrame = fs->frame( 0 );
KWTextFrameSetEdit *textframeSetEdit = dynamic_cast<KWTextFrameSetEdit *>(m_currentCell);
- textframeSetEdit->ensureCursorVisible();
- //refresh koruler
- m_canvas->gui()->getView()->slotUpdateRuler();
+ if ( textframeSetEdit )
+ {
+ textframeSetEdit->ensureCursorVisible();
+ //refresh koruler
+ m_canvas->gui()->getView()->slotUpdateRuler();
+ }
}
KWFrameSetEdit* KWTableFrameSetEdit::currentTextEdit()
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic