cui/source/tabpages/border.cxx | 4 ++-- sc/qa/uitest/calc_tests/formatCells.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit f4eb555ff5294db037ea6e4d9510d0ca11276fa7 Author: Samuel Mehrbrodt <[email protected]> AuthorDate: Tue Nov 23 13:39:10 2021 +0100 Commit: Samuel Mehrbrodt <[email protected]> CommitDate: Wed Nov 24 15:26:45 2021 +0100 Border tab page: Use 'thin' width instead of random number Change-Id: I89f3be2d6bba02f1fbe52065fab81caded2656f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125699 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <[email protected]> diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx index 3f6d0fe7b2d4..ffe631eee007 100644 --- a/cui/source/tabpages/border.cxx +++ b/cui/source/tabpages/border.cxx @@ -119,8 +119,8 @@ static sal_Int64 lcl_GetMinLineWidth(SvxBorderLineStyle aStyle) return 15; // Double lines - case SvxBorderLineStyle::DOUBLE: return 22; - case SvxBorderLineStyle::DOUBLE_THIN: return 22; + case SvxBorderLineStyle::DOUBLE: return 15; + case SvxBorderLineStyle::DOUBLE_THIN: return 15; case SvxBorderLineStyle::THINTHICK_SMALLGAP: return 20; case SvxBorderLineStyle::THINTHICK_MEDIUMGAP: return 15; case SvxBorderLineStyle::THINTHICK_LARGEGAP: return 15; diff --git a/sc/qa/uitest/calc_tests/formatCells.py b/sc/qa/uitest/calc_tests/formatCells.py index de6249afc202..59c291685090 100644 --- a/sc/qa/uitest/calc_tests/formatCells.py +++ b/sc/qa/uitest/calc_tests/formatCells.py @@ -261,7 +261,7 @@ class formatCell(UITestCase): # set line style to "double" (minimal width is taken) xLineSet.executeAction("CHOOSE", mkPropertyValues({"POS": '16'})) widthVal = get_state_as_dict(linewidthmf)["Text"] - self.assertEqual(widthVal, '1.10 pt') + self.assertEqual(widthVal, '0.75 pt') # set line style to "solid" xLineSet.executeAction("CHOOSE", mkPropertyValues({"POS": "1"}))
