1
0
mirror of synced 2025-01-29 19:17:28 +01:00

fix: Pattern data view rendering of bitfields within bitfields being broken

This commit is contained in:
WerWolv 2024-05-07 23:32:51 +02:00
parent 10351c5bdc
commit a5eb031401

View File

@ -135,11 +135,12 @@ namespace hex::ui {
}
void drawSizeColumn(const pl::ptrn::Pattern& pattern) {
ImGui::TableNextColumn();
if (auto *bitfieldMember = dynamic_cast<const pl::ptrn::PatternBitfieldMember*>(&pattern); bitfieldMember != nullptr && bitfieldMember->getParentBitfield() != nullptr)
drawSizeColumnForBitfieldMember(*bitfieldMember);
else
else {
ImGui::TableNextColumn();
ImGuiExt::TextFormatted("0x{0:04X}", pattern.getSize());
}
}
void drawCommentTooltip(const pl::ptrn::Pattern &pattern) {