xmloff/source/text/txtexppr.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 54e4d3b0983698ba8588146299b5db59e946cfc4 Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Wed Aug 7 18:49:24 2019 +0200 Commit: Xisco Faulí <xiscofa...@libreoffice.org> CommitDate: Fri Aug 9 12:47:13 2019 +0200 tdf#125628: FORMATTING: Part of text loose yellow highlight reopening document Change-Id: Id42c33857537451c2dec17d24f65b10f9c16dfa2 Reviewed-on: https://gerrit.libreoffice.org/77135 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> (cherry picked from commit fa774e16b1dfe4844ec5eb3f9372d6468f6b8a56) Reviewed-on: https://gerrit.libreoffice.org/77183 Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org> diff --git a/xmloff/source/text/txtexppr.cxx b/xmloff/source/text/txtexppr.cxx index 8e963dbe9e0a..3d2acaff4209 100644 --- a/xmloff/source/text/txtexppr.cxx +++ b/xmloff/source/text/txtexppr.cxx @@ -1129,9 +1129,8 @@ void XMLTextExportPropertySetMapper::ContextFilter( pClip11State->mnIndex = -1; // When both background attributes are available export the visible one - if( pCharHighlight && pCharBackground ) + if (pCharHighlight) { - assert(pCharBackgroundTransparency); // always together Color nColor = COL_TRANSPARENT; pCharHighlight->maValue >>= nColor; if( nColor == COL_TRANSPARENT ) @@ -1140,8 +1139,10 @@ void XMLTextExportPropertySetMapper::ContextFilter( // and we'd need another property CharHighlightTransparent for that pCharHighlight->mnIndex = -1; } - else + // When both background attributes are available export the visible one + else if(pCharBackground) { + assert(pCharBackgroundTransparency); // always together pCharBackground->mnIndex = -1; pCharBackgroundTransparency->mnIndex = -1; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits