sw/source/uibase/shells/textsh1.cxx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-)
New commits: commit cae4b4951f061a67fab779493e6992d9097f4a4d Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> AuthorDate: Mon Aug 12 12:53:38 2019 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> CommitDate: Mon Aug 12 16:02:08 2019 +0200 tdf#120734 Only enable "Remove hyperlink" when hyperlink selected Change-Id: I4a4b7fc8adb86f6af4660e7d987a7703945c40d4 Reviewed-on: https://gerrit.libreoffice.org/77349 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 841ca6e315f7..3f9e753f55fa 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1748,6 +1748,7 @@ void SwTextShell::GetState( SfxItemSet &rSet ) break; case SID_EDIT_HYPERLINK: + case SID_REMOVE_HYPERLINK: case SID_COPY_HYPERLINK_LOCATION: { SfxItemSet aSet(GetPool(), @@ -1760,22 +1761,6 @@ void SwTextShell::GetState( SfxItemSet &rSet ) } } break; - case SID_REMOVE_HYPERLINK: - { - SfxItemSet aSet(GetPool(), - svl::Items<RES_TXTATR_INETFMT, - RES_TXTATR_INETFMT>{}); - rSh.GetCurAttr(aSet); - - // If a hyperlink is selected, either alone or along with other text... - if ((aSet.GetItemState(RES_TXTATR_INETFMT) < SfxItemState::SET && - aSet.GetItemState(RES_TXTATR_INETFMT) != SfxItemState::DONTCARE) || - rSh.HasReadonlySel()) - { - rSet.DisableItem(nWhich); - } - } - break; case SID_TRANSLITERATE_HALFWIDTH: case SID_TRANSLITERATE_FULLWIDTH: case SID_TRANSLITERATE_HIRAGANA: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits