summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2000-10-25 10:46:21 +0000
committerOliver Specht <os@openoffice.org>2000-10-25 10:46:21 +0000
commitf4d5248af92f4c0f8e4dd22df9209360d553fe87 (patch)
treed23b8b6f0f6ed44998bd84a075898062d33dd58f /sw/source
parent214242e7b9a47d54cec7e0c69b02048f1bb13cd5 (diff)
gotoRange: search for start node outside of sections
Diffstat (limited to 'sw/source')
-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();