From dfbde789eeef41f8aee33de12b7b674a49760470 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 1 Oct 2026 13:35:43 +0200 Subject: [PATCH] tdf#173819 Remove another checkbox indeterminate state when becoming active MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The split compound words checkbox in the edit style dialog is initially set to an indeterminate state when the alignment is something other than justify, presumably because its value is irrelevant in that case. However, if the the user then sets the alignment to justify then nothing was removing the that state. With the GTK plugin it was then not possible to change the value. With the gen plugin however you could still click it to give it a value. This patch just makes the button inactive whenever justify is selected. Weld then also removes the indeterminate state in that case. This patch is similar to the previous one that does the same thing for the paragraph composer checkbox. It is split into a separate patch to make it easier to backport the other patch to the 26.8 branch. Change-Id: Ib55b7a9675ba2c8234e758585d5933cbd39bfdd7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211677 Tested-by: Jenkins Reviewed-by: László Németh Tested-by: László Németh --- cui/source/tabpages/paragrph.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index 42f6fbe739f8..760ab3e83279 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -1722,6 +1722,8 @@ IMPL_LINK_NOARG(SvxParaAlignTabPage, AlignHdl_Impl, weld::Toggleable&, void) m_xLetterSpacingMinimum->set_sensitive(bJustify); m_xLetterSpacingMaximum->set_sensitive(bJustify); m_xCompoundBased->set_sensitive(bJustify); + if (bJustify && m_xCompoundBased->get_state() == TRISTATE_INDET) + m_xCompoundBased->set_active(false); m_xLabelGlyphScaling->set_sensitive(bJustify); // TODO visualize CharScaleWidth with percentage m_xGlyphScalingMinimum->set_sensitive(bJustify);