tdf#173819 Remove another checkbox indeterminate state when becoming active
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 <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
This commit is contained in:
committed by
László Németh
parent
8008829465
commit
dfbde789ee
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user