svx/source/sidebar/paragraph/ParaSpacingControl.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 6d031e4e3a2e773380374b5b142db5f5ebcdcf79 Author: Szymon KÅos <eszka...@gmail.com> Date: Mon Jan 23 18:07:03 2017 +0100 tdf#102142 : disable paragraph spacing icons in the print preview mode Change-Id: Ia75581ae6fe2942d8c28892f38abda2dd425f33b Reviewed-on: https://gerrit.libreoffice.org/33474 Reviewed-by: Szymon KÅos <eszka...@gmail.com> Tested-by: Szymon KÅos <eszka...@gmail.com> diff --git a/svx/source/sidebar/paragraph/ParaSpacingControl.cxx b/svx/source/sidebar/paragraph/ParaSpacingControl.cxx index 6fde988..a48374f 100644 --- a/svx/source/sidebar/paragraph/ParaSpacingControl.cxx +++ b/svx/source/sidebar/paragraph/ParaSpacingControl.cxx @@ -108,6 +108,11 @@ void ParaLRSpacingControl::StateChanged(sal_uInt16 nSID, SfxItemState eState, DBG_ASSERT( pWindow, "Control not found!" ); + if(SfxItemState::DISABLED == eState) + pWindow->Disable(); + else + pWindow->Enable(); + if(!m_xMultiplexer.is()) { m_xMultiplexer = css::ui::ContextChangeEventMultiplexer::get(
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits