[Libreoffice-bugs] [Bug 117881] FILEOPEN DOCX: Linefeed or pagebreak is missing from imported word DOCX document in libreoffice writer.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed May 30 22:08:33 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=117881
--- Comment #5 from Marco Diego Aurélio Mesquita <marcodiegomesquita at gmail.com> ---
I compiled Libreoffice from source and made some experiments. The following
changes seem to fix the bug, but it breaks tests (CppunitTest_sw_ooxmlexport9).
diff --git a/vcl/source/font/fontmetric.cxx b/vcl/source/font/fontmetric.cxx
index b54e41a..142e94e 100644
--- a/vcl/source/font/fontmetric.cxx
+++ b/vcl/source/font/fontmetric.cxx
@@ -457,7 +457,7 @@ void ImplFontMetricData::ImplCalcLineSpacing(const
std::vector<uint8_t>& rHheaDa
{
fAscent = rInfo.ascender * fScale;
fDescent = -rInfo.descender * fScale;
- fExtLeading = rInfo.linegap * fScale;
+ fExtLeading = rInfo.linegap * (fScale + 0.5);
}
// But if OS/2 is present, prefer it.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180530/e9c12066/attachment.html>
More information about the Libreoffice-bugs
mailing list