[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
Fri Jun 8 22:11:34 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=117881
--- Comment #14 from Marco Diego Aurélio Mesquita <marcodiegomesquita at gmail.com> ---
In method SwTwips SwFlowFrame::CalcUpperSpace if we add 10 to "nUpper" right
before returning under the following condition:
if (pPrevFrame && pPrevFrame->IsTextFrame()) {
const SwTextFrame *pTextFrame = static_cast< const SwTextFrame * >(
pPrevFrame );
if (pTextFrame) {
if (pTextFrame->GetTextNode()) {
if(pTextFrame->GetTextNode()->HasBullet()) {
nUpper += 20;
}
}
}
}
The problem goes away.
Surely, what we are doing here is to just make an arbitrary addition on nUpper.
I did so for testing purposes only. I'll try to think about something based on
the font metrics of such text node (probably external leading).
The good thing: this fix solves the problem and doesn't breaks any test! So, I
think we are really close to fix now.
--
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/20180608/8f70af3f/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list