1
0
mirror of synced 2025-01-31 03:53:44 +01:00

fix: change displayEnd by reference in case of double click (#530)

Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
This commit is contained in:
Polshakov Dmitry 2022-06-09 16:58:18 +03:00 committed by GitHub
parent a56ba50cf9
commit 91ac9ca120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ namespace hex {
}
bool drawArrayRoot(pl::Pattern& pattern, size_t entryCount, bool isInlined);
void drawArrayNode(u64 idx, u64 displayEnd, pl::Pattern& pattern);
void drawArrayNode(u64 idx, u64& displayEnd, pl::Pattern& pattern);
void drawArrayEnd(pl::Pattern& pattern, bool opened);
void drawCommentTooltip(const pl::Pattern &pattern) const;

View File

@ -321,7 +321,7 @@ namespace hex {
return open;
}
void PatternDrawer::drawArrayNode(u64 idx, u64 displayEnd, pl::Pattern& pattern) {
void PatternDrawer::drawArrayNode(u64 idx, u64& displayEnd, pl::Pattern& pattern) {
u64 lastVisible = displayEnd - 1;
ImGui::PushID(pattern.getOffset());