Change-Id: Ic4929dd699b4b28572e46c99ce49d95371b54bfc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137624
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
This commit is contained in:
Andrea Gelmini 2022-07-29 22:43:39 +02:00 committed by Adolfo Jayme Barrientos
parent 1bdd72e2d7
commit d4809b45c1

View file

@ -1297,7 +1297,7 @@ IMPL_LINK_NOARG(SvxBorderTabPage, SelStyleHdl_Impl, SvtLineListBox&, void)
sal_Int64 nNewWidth = (nOldMinWidth == nOldWidth) ? nNewMinWidth : nOldWidth;
// if we had selected a predefined border width under SvxBorderLineWidth::Medium set the Medium as default
// otherwise if we had a cusom border width under 1.10pt then set the spinner to the maximum allowed value for double border styles
// otherwise if we had a custom border width under 1.10pt then set the spinner to the maximum allowed value for double border styles
bool bNewDoubleHairline = m_xLbLineStyle->GetSelectEntryStyle() == SvxBorderLineStyle::DOUBLE_THIN && !m_xLineWidthMF->get_visible() &&
(nOldWidth == SvxBorderLineWidth::Hairline || nOldWidth == SvxBorderLineWidth::VeryThin || nOldWidth == SvxBorderLineWidth::Thin);
if (bNewDoubleHairline && nNewWidth < SvxBorderLineWidth::Medium)