diff options
author | Tibor Nagy <nagy.tibor2@nisz.hu> | 2020-08-05 14:29:49 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-08-07 12:18:45 +0200 |
commit | d54264e34c1ccc0eaf4178ab165a843028500223 (patch) | |
tree | 6f8d4342dc3265d711be0c781c044049bd30208a /sw/source/core/objectpositioning | |
parent | 52f8e0b6f09be0e8e8a068edef2017d45d5a1892 (diff) |
tdf#133071 DOCX import: fix vertical alignment to bottom page margin
The relative vertical alignment (top, center and bottom) of
bottom page margin wasn't handled.
Co-authored-by: Attila Szűcs (NISZ)
Change-Id: Ib41a8790f88ef004390787e3673a209dadd86457
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100170
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/core/objectpositioning')
-rw-r--r-- | sw/source/core/objectpositioning/anchoredobjectposition.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/objectpositioning/anchoredobjectposition.cxx b/sw/source/core/objectpositioning/anchoredobjectposition.cxx index 99bbd7f49d5d..a547ddd01633 100644 --- a/sw/source/core/objectpositioning/anchoredobjectposition.cxx +++ b/sw/source/core/objectpositioning/anchoredobjectposition.cxx @@ -285,6 +285,14 @@ void SwAnchoredObjectPosition::GetVertAlignmentValues( } } break; + case text::RelOrientation::PAGE_PRINT_AREA_BOTTOM: + { + nHeight = aRectFnSet.GetBottomMargin(_rPageAlignLayFrame); + nOffset = aRectFnSet.YDiff( + aRectFnSet.GetPrtBottom(_rPageAlignLayFrame), + nVertOrientTop); + } + break; // #i22341# - vertical alignment at top of line case text::RelOrientation::TEXT_LINE: { |