summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/filter/html/htmlfly.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmlfly.cxx b/sw/source/filter/html/htmlfly.cxx
index cdf62922f933..f9761aade4bc 100644
--- a/sw/source/filter/html/htmlfly.cxx
+++ b/sw/source/filter/html/htmlfly.cxx
@@ -534,7 +534,7 @@ rtl::OString SwHTMLWriter::OutFrmFmtOptions( const SwFrmFmt &rFrmFmt,
sal_uInt32 nFrmOpts,
const rtl::OString &rEndTags )
{
- rtl::OString sRetEndTags;
+ rtl::OString sRetEndTags(rEndTags);
rtl::OStringBuffer sOut;
const SfxPoolItem* pItem;
const SfxItemSet& rItemSet = rFrmFmt.GetAttrSet();
@@ -811,6 +811,7 @@ rtl::OString SwHTMLWriter::OutFrmFmtOptions( const SwFrmFmt &rFrmFmt,
sRetEndTags = sOut.makeStringAndClear();
}
}
+ assert(sRetEndTags.endsWith(rEndTags)); // fdo#58286
return sRetEndTags;
}