1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Rendering of pattern array entries not working correctly

This commit is contained in:
WerWolv 2022-09-08 23:03:58 +02:00
parent f219395b25
commit 83f4093796
3 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@
<mapping directory="$PROJECT_DIR$/lib/external/libromfs" vcs="Git" />
<mapping directory="$PROJECT_DIR$/lib/external/nativefiledialog" vcs="Git" />
<mapping directory="$PROJECT_DIR$/lib/external/pattern_language" vcs="Git" />
<mapping directory="$PROJECT_DIR$/lib/external/pattern_language/external/cli11" vcs="Git" />
<mapping directory="$PROJECT_DIR$/lib/external/pattern_language/external/fmt" vcs="Git" />
<mapping directory="$PROJECT_DIR$/lib/external/xdgpp" vcs="Git" />
<mapping directory="$PROJECT_DIR$/lib/external/yara/yara" vcs="Git" />

@ -1 +1 @@
Subproject commit 82fa40f9f8395c1b9e9c364841c8d3f8735b58c7
Subproject commit 25903574214e83bf4dddca1755c249be11298bba

View File

@ -368,7 +368,7 @@ namespace hex {
void PatternDrawer::drawArrayNode(u64 idx, u64& displayEnd, pl::ptrn::Pattern& pattern) {
u64 lastVisible = displayEnd - 1;
ImGui::PushID(&pattern);
ImGui::PushID(reinterpret_cast<void*>(pattern.getOffset()));
if (idx < lastVisible) {
this->draw(pattern);