diff options
Diffstat (limited to 'sw/source/uibase/shells/textsh1.cxx')
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 51d9a9d030aa..b4e845040b81 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1674,7 +1674,9 @@ void SwTextShell::GetState( SfxItemSet &rSet ) rSh.GetCurAttr(aSet); // If a hyperlink is selected, either alone or along with other text... - if(aSet.GetItemState( RES_TXTATR_INETFMT, true ) != SfxItemState::DONTCARE || rSh.HasReadonlySel()) + if ((aSet.GetItemState(RES_TXTATR_INETFMT, true) < SfxItemState::SET && + aSet.GetItemState(RES_TXTATR_INETFMT, true) != SfxItemState::DONTCARE) || + rSh.HasReadonlySel()) { rSet.DisableItem(nWhich); } |