1
0
mirror of synced 2024-12-01 02:37:18 +01:00

fix: Bitfields not being displayed correctly in Pattern Data view (#580)

Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
This commit is contained in:
Polshakov Dmitry 2022-07-25 13:09:28 +03:00 committed by GitHub
parent 8aff20b374
commit e7399d223d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,9 +44,13 @@ namespace hex {
void PatternDrawer::visit(pl::PatternBitfieldField& pattern) { void PatternDrawer::visit(pl::PatternBitfieldField& pattern) {
ImGui::TableNextRow(); ImGui::TableNextRow();
createLeafNode(pattern);
ImGui::TableNextColumn(); ImGui::TableNextColumn();
drawNameColumn(pattern);
makeSelectable(pattern); makeSelectable(pattern);
drawCommentTooltip(pattern);
ImGui::SameLine();
drawNameColumn(pattern);
drawColorColumn(pattern); drawColorColumn(pattern);
auto byteAddr = pattern.getOffset() + pattern.getBitOffset() / 8; auto byteAddr = pattern.getOffset() + pattern.getBitOffset() / 8;