diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-02-22 17:06:39 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-07-07 17:04:50 +0200 |
commit | 02516860272521f1bb83f4744d9ad5e2f6435f24 (patch) | |
tree | 0694c17a8270040e10ffec5c0a905315a07e2339 /sw/source/filter/html/wrthtml.cxx | |
parent | bafe6d1c933a6256a348e9a9d9c5b68cfd46887b (diff) |
sw HTML export: handle LeadingTabWidth without FilterOptions
LeadingTabWidth is meant to be useful for plain HTML as well, but the
old code only considered it when FilterOptions was set (typically to
enable th XHTML mode).
Thanks Stephan Bergmann for noticing that the u"" SAL_NEWLINE_STRING
"\xa0\xa0 test" form would not work with MSVC.
(cherry picked from commit 89667371e2c773760e7f7496590f55e7da062cb7)
Change-Id: I89a8b266d9a0f543f6022d82cf043bda4e6e639f
(cherry picked from commit 2bd52c78a707d4229543e3b00e706176f7ca2367)
Diffstat (limited to 'sw/source/filter/html/wrthtml.cxx')
-rw-r--r-- | sw/source/filter/html/wrthtml.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sw/source/filter/html/wrthtml.cxx b/sw/source/filter/html/wrthtml.cxx index 62e43946a49c..becaf51cbe83 100644 --- a/sw/source/filter/html/wrthtml.cxx +++ b/sw/source/filter/html/wrthtml.cxx @@ -187,12 +187,11 @@ void SwHTMLWriter::SetupFilterOptions(SfxMedium& rMedium) return; const SfxPoolItem* pItem; - if (pSet->GetItemState( SID_FILE_FILTEROPTIONS, true, &pItem ) != SfxItemState::SET) - return; - - - const OUString sFilterOptions = static_cast<const SfxStringItem*>(pItem)->GetValue(); - SetupFilterOptions(sFilterOptions); + if (pSet->GetItemState(SID_FILE_FILTEROPTIONS, true, &pItem) == SfxItemState::SET) + { + const OUString sFilterOptions = static_cast<const SfxStringItem*>(pItem)->GetValue(); + SetupFilterOptions(sFilterOptions); + } SetupFilterFromPropertyValues(rMedium.GetArgs()); } |