summaryrefslogtreecommitdiff
path: root/UnoControls/inc/definesunocontrols.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2024-05-22 13:56:40 +0200
committerMiklos Vajna <vmiklos@collabora.com>2024-05-22 17:50:10 +0200
commitd1ddd136a1b0e452492464d58715eaec144fd811 (patch)
tree076cadea740f96d91e0310f9071b09e3133bf4d3 /UnoControls/inc/definesunocontrols.hxx
parent7ba662caf1c408dcf18a8624c707ce24d37d55de (diff)
tdf#160984 sw continuous endnotes: fix the endnote container's top marginHEADmaster
Comparing the Word vs Writer output for the bugdoc, the vertical position of the endnote text is not correct: the y pos should be larger than it is, see the red reference at e.g. <https://bug-attachments.documentfoundation.org/attachment.cgi?id=194265>. Seems this is caused by the different height of the rectangle around the endnote separator: the top margin is 124 twips in Writer, which is a hardcoded default from the SwPageFootnoteInfo ctor, while Word has this separator as a special character, inside a paragraph, which inherits the height of the default paragraph style. Fix the problem by extending sw::FootnoteSeparatorHeight() to also work from RES_POOLCOLL_STANDARD in the Word compat case. Note that it's not enough to take the font size (11pt in this case) from the paragraph style, we want to work with the real font, which knows the spacing between lines (15% in this case). SwFont::GetHeight() has this logic, it's also what e.g. SwTextFrame::FormatEmpty() uses. Note that footnotes have the same problem, but given that they grow from the bottom of the page, the text position was correct, even if the separator height is incorrect. Also, the separator line itself is not changed in this commit, we just make sure that the height is OK, so text below the line has the correct position. Change-Id: If1f4757908355abc81ee711de5ab9db4c751354c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167959 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'UnoControls/inc/definesunocontrols.hxx')
0 files changed, 0 insertions, 0 deletions