summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2000-11-22 09:49:24 +0000
committerOliver Specht <os@openoffice.org>2000-11-22 09:49:24 +0000
commitd7c33b54628f982eb2b6cfb42dd2f07c63da5dff (patch)
tree1f108c1c488ddb6652b75cc785792ff07eef2a19
parent71d1a7c9d2a30287bd49e16c584b0a13c26e639b (diff)
#80576# SwXCellRange: delete cursor in ::Modify
-rw-r--r--sw/source/core/unocore/unotbl.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 5ed5b335cc88..e5253035ee9c 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unotbl.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: os $ $Date: 2000-11-17 14:25:35 $
+ * last change: $Author: os $ $Date: 2000-11-22 10:49:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -4091,8 +4091,10 @@ sal_uInt16 SwXCellRange::getRowCount(void)
void SwXCellRange::Modify( SfxPoolItem *pOld, SfxPoolItem *pNew)
{
ClientModify(this, pOld, pNew );
- if(!aCursorDepend.GetRegisteredIn())
+ if(!GetRegisteredIn() || aCursorDepend.GetRegisteredIn())
{
+ if(aCursorDepend.GetRegisteredIn())
+ delete pTblCrsr;
pTblCrsr = 0;
aChartLstnrCntnr.Disposing();
}