summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-05-29 16:36:41 +0200
committerLászló Németh <nemeth@numbertext.org>2019-06-03 16:12:27 +0200
commit32262b0a537207832d7d126d8427d8949b9e821d (patch)
tree84e61d097038ecadd77921df2a60f34cab88a343 /include/editeng
parenta2720a24328fcee3bde431dc632c068b266228c9 (diff)
tdf#120412 char formatting UI: clean-up DFLT_ESC_AUTO
Default auto values must be outside of the new enlarged range of the superscript/subscript percent values. Note: the raising limit was modified to 13999 from 14400, because the RTF unit test tdf112208_hangingIndent.rtf lost its hanging from the bigger value. Change-Id: I3a7e9715a27570278ee4ee70f9fc9ad29457e100 Reviewed-on: https://gerrit.libreoffice.org/73166 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/escapementitem.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/editeng/escapementitem.hxx b/include/editeng/escapementitem.hxx
index 86e148361051..82f9dde70823 100644
--- a/include/editeng/escapementitem.hxx
+++ b/include/editeng/escapementitem.hxx
@@ -28,8 +28,9 @@
#define DFLT_ESC_SUPER 33 // 1/3
#define DFLT_ESC_SUB -33 // also 1/3 previously 8/100
#define DFLT_ESC_PROP 58
-#define DFLT_ESC_AUTO_SUPER 101
-#define DFLT_ESC_AUTO_SUB -101
+#define MAX_ESC_POS 13999
+#define DFLT_ESC_AUTO_SUPER (MAX_ESC_POS+1)
+#define DFLT_ESC_AUTO_SUB -DFLT_ESC_AUTO_SUPER
/* [Description]