summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/cuihyperdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/cuihyperdlg.cxx')
-rw-r--r--cui/source/dialogs/cuihyperdlg.cxx15
1 files changed, 3 insertions, 12 deletions
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index 1421e1442802..de58b79976d7 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -287,21 +287,12 @@ sal_uInt16 SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem )
nPageId = RID_SVXPAGE_HYPERLINK_MAIL;
break;
default :
- sal_Char const sNewsSrvScheme[] = "news://";
- // TODO news:// is nonsense
-
- if (aStrURL.startsWith(sNewsSrvScheme))
+ if (aStrURL.startsWith("#"))
nPageId = RID_SVXPAGE_HYPERLINK_DOCUMENT;
else
{
- sal_Char const sHash[] = "#";
- if (aStrURL.startsWith(sHash))
- nPageId = RID_SVXPAGE_HYPERLINK_DOCUMENT;
- else
- {
- eProtocolTyp = INET_PROT_NOT_VALID;
- nPageId = GetCurPageId();
- }
+ eProtocolTyp = INET_PROT_NOT_VALID;
+ nPageId = GetCurPageId();
}
break;
}