summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authornd101 <Fong@nd.com.cn>2019-07-08 09:10:29 +0800
committerMike Kaganski <mike.kaganski@collabora.com>2019-07-11 06:58:28 +0200
commitd064b51afc84af92f877dc33c683c9521a6cd937 (patch)
treef54aa9c4ab6feb1cb4868c619caf0ca6308a1582 /editeng
parentc283d46196c148733619ac0f59f07878ff95c7f1 (diff)
tdf#126234 up relative bullet size limit to 400%
The legitimate value for MS Office document bullet relative size is between 0% and 400% But for ODF the value is normally between 0% and 250%. Per ODF 1.2 spec "19.761 text:bullet-relative-size" there is no limit placed on the relative size of the bullet. This change is to make the upper limit match MS Office to address the import issue. UI also changed to reflect the raise Change-Id: Ic4bbef47e86a04b9a6f9f6188326c8b66e034807 Reviewed-on: https://gerrit.libreoffice.org/75189 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/uno/unonrule.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index a046910b1068..e469d63f9ac4 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -440,8 +440,10 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex(const Sequence<beans::Propert
sal_Int16 nSize = sal_Int16();
if( aVal >>= nSize )
{
- // [Bug 120650] the slide content corrupt when open in Aoo
- if ((nSize>250)||(nSize<=0))
+ // [AOO Bug 120650] the slide content corrupt when open in Aoo
+ // [TDF# 126234] when MS Office document being imported, the value of the relative size
+ // of the bullet could be as high as 400%
+ if ((nSize>400)||(nSize<=0))
{
nSize = 100;
}