summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/unocore/unoobj.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index f0b78ea5656c..633e76793552 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.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: os $ $Date: 2000-10-23 11:23:38 $
+ * last change: $Author: os $ $Date: 2000-10-25 11:46:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1964,6 +1964,10 @@ void SwXTextCursor::gotoRange(const uno::Reference< XTextRange > & xRange, sal_B
{
pTmp = pTmp->FindStartNode();
}
+ while(pOwnStartNode && pOwnStartNode->IsSectionNode())
+ {
+ pOwnStartNode = pOwnStartNode->FindStartNode();
+ }
if(pOwnStartNode != pTmp)
{
throw uno::RuntimeException();