[Libreoffice-commits] core.git: svx/source
Szymon Kłos
eszkadev at gmail.com
Mon Jan 23 19:26:50 UTC 2017
svx/source/sidebar/paragraph/ParaSpacingControl.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 6d031e4e3a2e773380374b5b142db5f5ebcdcf79
Author: Szymon Kłos <eszkadev at 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 <eszkadev at gmail.com>
Tested-by: Szymon Kłos <eszkadev at 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(
More information about the Libreoffice-commits
mailing list