diff options
author | Michael Brauer <mib@openoffice.org> | 2000-11-01 11:15:32 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2000-11-01 11:15:32 +0000 |
commit | c551cfeb7e766872520973e27debec88693f89e4 (patch) | |
tree | 9e84313d67313e00abc78c71406dda26a1c5320c /xmloff/source/text/XMLTextHeaderFooterContext.cxx | |
parent | f9cabb4c2b3de7198197e4d48c5111a19aa5b53d (diff) |
#79923#: Don't delete table at header or footer's end
Diffstat (limited to 'xmloff/source/text/XMLTextHeaderFooterContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLTextHeaderFooterContext.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/xmloff/source/text/XMLTextHeaderFooterContext.cxx b/xmloff/source/text/XMLTextHeaderFooterContext.cxx index 6493c734e444..4e869d9d82e9 100644 --- a/xmloff/source/text/XMLTextHeaderFooterContext.cxx +++ b/xmloff/source/text/XMLTextHeaderFooterContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLTextHeaderFooterContext.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mib $ $Date: 2000-10-26 09:25:33 $ + * last change: $Author: mib $ $Date: 2000-11-01 12:15:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -234,14 +234,7 @@ void XMLTextHeaderFooterContext::EndElement() { if( xOldTextCursor.is() ) { - if( GetImport().GetTextImport()->GetCursor()->goLeft( 1, sal_True ) ) - { - OUString sEmpty; - GetImport().GetTextImport()->GetText()->insertString( - GetImport().GetTextImport()->GetCursorAsRange(), sEmpty, - sal_True ); - } - else if( xTextContent.is() ) + if( xTextContent.is() ) { Reference< XRelativeTextContentRemove > xRemove( GetImport().GetTextImport()->GetText(), UNO_QUERY ); @@ -251,6 +244,13 @@ void XMLTextHeaderFooterContext::EndElement() xRemove->removeTextContentAfter( xTextContent ); } } + else if( GetImport().GetTextImport()->GetCursor()->goLeft( 1, sal_True ) ) + { + OUString sEmpty; + GetImport().GetTextImport()->GetText()->insertString( + GetImport().GetTextImport()->GetCursorAsRange(), sEmpty, + sal_True ); + } GetImport().GetTextImport()->SetCursor( xOldTextCursor ); } |