Skip to content

Commit

Permalink
Merge pull request #4 from LeonarddeR/accValue
Browse files Browse the repository at this point in the history
Add IAccessible::value to vbuf
  • Loading branch information
nvdaes authored Aug 13, 2024
2 parents 4e1f7cd + 60dd50a commit 9d13634
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions nvdaHelper/vbufBackends/gecko_ia2/gecko_ia2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1000,10 +1000,16 @@ VBufStorage_fieldNode_t* GeckoVBufBackend_t::fillVBuf(
}

BSTR value=NULL;
if(pacc->get_accValue(varChild,&value)==S_OK) {
if(value&&SysStringLen(value)==0) {
SysFreeString(value);
value=NULL;
if (pacc->get_accValue(varChild, &value) == S_OK) {
if (value) {
if (role == ROLE_SYSTEM_LINK) {
// For links, store the IAccessible value to handle same page link detection.
parentNode->addAttribute(L"IAccessible::value", value);
}
if (SysStringLen(value)==0) {
SysFreeString(value);
value=NULL;
}
}
}

Expand Down

0 comments on commit 9d13634

Please sign in to comment.