diff options
author | Michael Brauer <mib@openoffice.org> | 2000-11-17 06:36:13 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2000-11-17 06:36:13 +0000 |
commit | 91b26812a74108d5bdc92f1dfc640b6ddaf60a93 (patch) | |
tree | 2170e079ed3da799c6829050f18a72e4cbe4ada5 /sw/source/core | |
parent | 8d3586cfa867af7083c9ea6ae067962d6189008c (diff) |
#80360#: CreateTextCursor now pays attention to section nodes
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index aeb7c5d18b97..27f72fe6f794 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.8 $ + * $Revision: 1.9 $ * - * last change: $Author: os $ $Date: 2000-11-16 15:26:37 $ + * last change: $Author: mib $ $Date: 2000-11-17 07:36:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -961,7 +961,13 @@ uno::Reference< XTextCursor > SwXCell::createTextCursorByRange(const uno::Refer if((pStartNode || IsValid()) && SwXTextRange::XTextRangeToSwPaM(aPam, xTextPosition)) { const SwStartNode* pSttNd = pStartNode ? pStartNode : pBox->GetSttNd(); - if(aPam.GetNode()->FindStartNode() == pSttNd) + const SwStartNode* pTmp = aPam.GetNode()->FindStartNode(); + while(pTmp && pTmp->IsSectionNode()) + { + pTmp = pTmp->FindStartNode(); + } + + if(pTmp == pSttNd) aRef = (XWordCursor*)new SwXTextCursor(this , *aPam.GetPoint(), CURSOR_TBLTEXT, GetDoc(), aPam.GetMark()); } else |