diff options
author | Michael Brauer <mib@openoffice.org> | 2001-03-09 06:23:23 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-03-09 06:23:23 +0000 |
commit | f8910a64102bc9f784dcb8e9772fc8479e5ec8a0 (patch) | |
tree | 8e6bd8e80f451182b9d3fbc37e9356bf78fc5f41 /xmloff/source/text/XMLChangedRegionImportContext.cxx | |
parent | f1d265645f2252debe9bddc715520ad6e75ddbe1 (diff) |
remove section's last paragraph safely
Diffstat (limited to 'xmloff/source/text/XMLChangedRegionImportContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLChangedRegionImportContext.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xmloff/source/text/XMLChangedRegionImportContext.cxx b/xmloff/source/text/XMLChangedRegionImportContext.cxx index d662ddccfc83..1475dffd9b29 100644 --- a/xmloff/source/text/XMLChangedRegionImportContext.cxx +++ b/xmloff/source/text/XMLChangedRegionImportContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLChangedRegionImportContext.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dvo $ $Date: 2001-01-16 10:51:15 $ + * last change: $Author: mib $ $Date: 2001-03-09 07:23:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -191,10 +191,7 @@ void XMLChangedRegionImportContext::EndElement() // (one extra paragraph was inserted in the beginning) UniReference<XMLTextImportHelper> rHelper = GetImport().GetTextImport(); - rHelper->GetCursor()->goRight(1, sal_False); - rHelper->GetCursor()->goLeft(1, sal_True); - rHelper->GetText()->insertString(rHelper->GetCursorAsRange(), - sEmpty, sal_True); + rHelper->DeleteParagraph(); GetImport().GetTextImport()->SetCursor(xOldCursor); xOldCursor = NULL; |