diff options
Diffstat (limited to 'sw/source/uibase/docvw/edtwin2.cxx')
-rw-r--r-- | sw/source/uibase/docvw/edtwin2.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx index a98d38cf1e79..1c9563782050 100644 --- a/sw/source/uibase/docvw/edtwin2.cxx +++ b/sw/source/uibase/docvw/edtwin2.cxx @@ -575,16 +575,13 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) const auto pAuthorityField = static_cast<const SwAuthorityField*>(pField); sText = pAuthorityField->GetAuthority(rSh.GetLayout()); - if (!pAuthorityField->UseTargetURL() && pAuthorityField->HasURL()) + if (auto t = pAuthorityField->GetTargetType(); + t == SwAuthorityField::TargetType::UseDisplayURL + || t == SwAuthorityField::TargetType::UseTargetURL) { const OUString& rURL = pAuthorityField->GetAbsoluteURL(); sText += "\n" + SfxHelp::GetURLHelpText(rURL); } - else if (pAuthorityField->UseTargetURL() && pAuthorityField->HasTargetURL()) - { - const OUString& rURL = pAuthorityField->GetAbsoluteTargetURL(); - sText += "\n" + SfxHelp::GetURLHelpText(rURL); - } break; } |