diff options
author | Oliver Specht <os@openoffice.org> | 2000-11-23 10:45:33 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2000-11-23 10:45:33 +0000 |
commit | af57106b036a67a3642861323925799f18ad4116 (patch) | |
tree | 7f68a2cf07cdb18a4cd2e0fc58493c442637751e | |
parent | 84f85e63cc4c6808c512fc9ea18a66892389f2b9 (diff) |
#80640# create parent XText interface for ranges in table cells
-rw-r--r-- | sw/source/core/unocore/unoobj.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx index 2793d5a74654..4290ddd4fc2a 100644 --- a/sw/source/core/unocore/unoobj.cxx +++ b/sw/source/core/unocore/unoobj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoobj.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.25 $ * - * last change: $Author: os $ $Date: 2000-11-17 11:18:40 $ + * last change: $Author: os $ $Date: 2000-11-23 11:45:33 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3827,6 +3827,8 @@ uno::Reference< XTextRange > SwXTextRange::getStart(void) throw( uno::RuntimeEx vos::OGuard aGuard(Application::GetSolarMutex()); uno::Reference< XTextRange > xRet; SwBookmark* pBkm = GetBookmark(); + if(!xParentText.is()) + getText(); if(pBkm) { SwPaM aPam(pBkm->GetPos()); @@ -3849,6 +3851,8 @@ uno::Reference< XTextRange > SwXTextRange::getEnd(void) throw( uno::RuntimeExce vos::OGuard aGuard(Application::GetSolarMutex()); uno::Reference< XTextRange > xRet; SwBookmark* pBkm = GetBookmark(); + if(!xParentText.is()) + getText(); if(pBkm) { SwPaM aPam(pBkm->GetOtherPos()? *pBkm->GetOtherPos() : pBkm->GetPos()); |