diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-07-24 19:03:23 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-07-25 20:42:16 +0200 |
commit | 545ddabc6614e751c807e9d1e1cbf7c617fc4141 (patch) | |
tree | 1931202c2defa4c88d5f8af7a83a351a304f6889 /sw/source | |
parent | 6db143f43874a817b7a920dea41939bf9439ca9b (diff) |
tdf#118777: Disable signature line slot if non-text object
in 6.1 only in sw, the functionality ain't there yet in sc
Change-Id: I54f7ec336026013d09ac6262779e7fcbd17c2084
Reviewed-on: https://gerrit.libreoffice.org/57949
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Reviewed-on: https://gerrit.libreoffice.org/57990
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/uiview/viewstat.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx index 73661dca0b1b..04e344d0b10e 100644 --- a/sw/source/uibase/uiview/viewstat.cxx +++ b/sw/source/uibase/uiview/viewstat.cxx @@ -97,12 +97,18 @@ void SwView::GetState(SfxItemSet &rSet) break; case SID_INSERT_GRAPHIC: - case SID_INSERT_SIGNATURELINE: if( m_pWrtShell->CursorInsideInputField() ) { rSet.DisableItem(nWhich); } break; + case SID_INSERT_SIGNATURELINE: + if( !( m_nSelectionType & SelectionType::Text || + m_nSelectionType & SelectionType::NumberList ) ) + { + rSet.DisableItem(nWhich); + } + break; case SID_EDIT_SIGNATURELINE: case SID_SIGN_SIGNATURELINE: if (!isSignatureLineSelected()) |