summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/paragraph/ParaSpacingControl.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2017-01-23 18:07:03 +0100
committerSzymon Kłos <eszkadev@gmail.com>2017-01-23 19:26:18 +0000
commit6d031e4e3a2e773380374b5b142db5f5ebcdcf79 (patch)
tree4b562b8f18a077d8a091849ba4b6c8613b918e21 /svx/source/sidebar/paragraph/ParaSpacingControl.cxx
parenta983ad7cf9a2d1720fdf1fcfcfbbd91c67d966e0 (diff)
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@gmail.com> Tested-by: Szymon Kłos <eszkadev@gmail.com>
Diffstat (limited to 'svx/source/sidebar/paragraph/ParaSpacingControl.cxx')
-rw-r--r--svx/source/sidebar/paragraph/ParaSpacingControl.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/svx/source/sidebar/paragraph/ParaSpacingControl.cxx b/svx/source/sidebar/paragraph/ParaSpacingControl.cxx
index 6fde98830cfe..a48374fb06b5 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(