mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1146518 - Only pass hyper links to MaiHyperlink::MaiHyperlink r=surkov
This commit is contained in:
parent
483acccf3a
commit
9d2eb81fdd
@ -94,9 +94,6 @@ MaiHyperlink::MaiHyperlink(Accessible* aHyperLink) :
|
||||
mHyperlink(aHyperLink),
|
||||
mMaiAtkHyperlink(nullptr)
|
||||
{
|
||||
if (!mHyperlink->IsLink())
|
||||
return;
|
||||
|
||||
mMaiAtkHyperlink =
|
||||
reinterpret_cast<AtkHyperlink *>
|
||||
(g_object_new(mai_atk_hyperlink_get_type(), nullptr));
|
||||
|
@ -27,7 +27,7 @@ getLinkCB(AtkHypertext *aText, gint aLinkIndex)
|
||||
NS_ENSURE_TRUE(hyperText, nullptr);
|
||||
|
||||
Accessible* hyperLink = hyperText->LinkAt(aLinkIndex);
|
||||
if (!hyperLink) {
|
||||
if (!hyperLink || !hyperLink->IsLink()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user