diff options
author | Jozsef Szakacs <zmx3@citromail.hu> | 2019-03-13 12:32:20 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-05-29 14:31:03 +0200 |
commit | bdfb3edb981ff04f1f3f6dc1ef335e37a0980245 (patch) | |
tree | 003858f805b7cc912d048e703c5fec7dd8aeceeb /editeng | |
parent | bdc74dc279946abfdcca409edc96e985699eb368 (diff) |
tdf#120412 DOCX filter: fix missing superscript
by editeng support of large superscript raising.
Maximal raising of superscript text is 1584 pt in MSO,
while LibreOffice didn't import the values greater
than 100% of the current font height. Using the maximal
percent value of the default 11 pt font, the limit
is 14400% now, fixing most of the import problems.
Greater raisings will be limited to 14400% during the
DOCX import.
Note: the standard doesn't limit the bigger percent
values, see "20.374 style:text-position" and
"18.3.23 percent" in OpenDocument 1.2.
Change-Id: I3d0d08f273f2067180f74fba40c47d62364fcc59
Reviewed-on: https://gerrit.libreoffice.org/69164
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/textitem.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 13c5c04ffbbe..e4ce386c68c9 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -1782,7 +1782,8 @@ bool SvxEscapementItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) case MID_ESC: { sal_Int16 nVal = sal_Int16(); - if( (rVal >>= nVal) && (std::abs(nVal) <= 101)) + // tdf#120412 up to 14400% (eg. 1584 pt with 11 pt letters) + if( (rVal >>= nVal) && (std::abs(nVal) <= 14400)) nEsc = nVal; else return false; |