sw/source/filter/html/htmlflywriter.cxx | 6 ++++-- sw/source/filter/html/htmltabw.cxx | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-)
New commits: commit 8b26fec2d57986bc511cbf659cd186b9900ae398 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Thu Jul 7 17:35:56 2022 +0200 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Thu Jul 7 18:19:53 2022 +0200 do not write vspace/hspace attributes to reqif These are not valid for the ReqIF-XHTML subset. Change-Id: Ie68560c49ba43b0f728c6e51eeb33b4829bded93 diff --git a/sw/source/filter/html/htmlflywriter.cxx b/sw/source/filter/html/htmlflywriter.cxx index 01553a363c82..06652a450121 100644 --- a/sw/source/filter/html/htmlflywriter.cxx +++ b/sw/source/filter/html/htmlflywriter.cxx @@ -622,7 +622,8 @@ OString SwHTMLWriter::OutFrameFormatOptions( const SwFrameFormat &rFrameFormat, if( (nFrameOpts & HtmlFrmOpts::Space) && (aTwipSpc.Width() || aTwipSpc.Height()) && - Application::GetDefaultDevice() ) + Application::GetDefaultDevice() && + !mbReqIF ) { Size aPixelSpc = Application::GetDefaultDevice()->LogicToPixel( aTwipSpc, @@ -889,7 +890,8 @@ void SwHTMLWriter::writeFrameFormatOptions(HtmlWriter& aHtml, const SwFrameForma if( (nFrameOptions & HtmlFrmOpts::Space) && (aTwipSpc.Width() || aTwipSpc.Height()) && - Application::GetDefaultDevice() ) + Application::GetDefaultDevice() && + !mbReqIF ) { Size aPixelSpc = Application::GetDefaultDevice()->LogicToPixel( aTwipSpc, diff --git a/sw/source/filter/html/htmltabw.cxx b/sw/source/filter/html/htmltabw.cxx index dea6d9d01b62..81a7daf570a0 100644 --- a/sw/source/filter/html/htmltabw.cxx +++ b/sw/source/filter/html/htmltabw.cxx @@ -672,7 +672,7 @@ void SwHTMLWrtTable::Write( SwHTMLWriter& rWrt, sal_Int16 eAlign, sOut.append("\""); } - if( (nHSpace || nVSpace) && Application::GetDefaultDevice()) + if( (nHSpace || nVSpace) && Application::GetDefaultDevice() && !rWrt.mbReqIF) { Size aPixelSpc = Application::GetDefaultDevice()->LogicToPixel( Size(nHSpace,nVSpace),