diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2018-09-03 12:16:55 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2018-09-03 23:39:20 +0200 |
commit | 6c3d10d86e48e92ad963750ec5ba6e1049df2532 (patch) | |
tree | e230bbb1f8710afd0918914ef6d50456f86991a2 /sw/source/uibase | |
parent | a8aaffa6ea0f0fd8cf1d22883173df64a93e3322 (diff) |
Enable the align group button for frames
Change-Id: I6ba8b5fe0d185817e61986c90f5264493b6d5339
Reviewed-on: https://gerrit.libreoffice.org/59951
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/shells/frmsh.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx index b9c7b98a3f95..1f3a0d3424ca 100644 --- a/sw/source/uibase/shells/frmsh.cxx +++ b/sw/source/uibase/shells/frmsh.cxx @@ -735,6 +735,12 @@ void SwFrameShell::GetState(SfxItemSet& rSet) rSet.Put(aSet.Get(GetPool().GetWhich(nWhich))); } break; + case SID_OBJECT_ALIGN: + { + if ( bProtect ) + rSet.DisableItem( nWhich ); + } + break; case SID_OBJECT_ALIGN_LEFT : case SID_OBJECT_ALIGN_CENTER : case SID_OBJECT_ALIGN_RIGHT : |