Skip to content

Commit 9e6e8a4

Browse files
committed
[#4] fix(DaedalusVm): ZkMenuItemInstance_getText now properly uses the passed index
1 parent f589870 commit 9e6e8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/daedalus/MenuItemInstance.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void ZkMenuItemInstance_setHideOnValue(ZkMenuItemInstance* slf, int32_t hideOnVa
224224
ZkString ZkMenuItemInstance_getText(ZkMenuItemInstance const* slf, ZkSize i) {
225225
ZKC_CHECK_NULL(slf);ZKC_CHECK_NULL(slf->get());
226226
ZKC_CHECK_LENA(ZkMenuItemInstance_TextCount, i);
227-
return SLF->text->c_str();
227+
return SLF->text[i].c_str();
228228
}
229229

230230
void ZkMenuItemInstance_setText(ZkMenuItemInstance* slf, ZkSize i, ZkString text) {

0 commit comments

Comments
 (0)