1
0
mirror of synced 2024-11-28 09:30:51 +01:00

pattern: Fixed highlighting issues with structs and arrays

This commit is contained in:
WerWolv 2022-01-22 15:27:25 +01:00
parent 10df0175d5
commit 42eea8ffba

View File

@ -875,7 +875,7 @@ namespace hex::pl {
if (iter == this->m_entries.end())
return nullptr;
else
return *iter;
return (*iter)->getPattern(offset);
}
private:
@ -1019,7 +1019,7 @@ namespace hex::pl {
const PatternData* getPattern(u64 offset) const override {
if (offset >= this->getOffset() && offset < (this->getOffset() + this->getSize())) {
this->m_highlightTemplate->setOffset((offset / this->m_highlightTemplate->getSize()) * this->m_highlightTemplate->getSize());
return this->m_highlightTemplate;
return this->m_highlightTemplate->getPattern(offset);
} else {
return nullptr;
}
@ -1158,7 +1158,7 @@ namespace hex::pl {
if (iter == this->m_members.end())
return nullptr;
else
return *iter;
return (*iter)->getPattern(offset);
}
private:
@ -1293,7 +1293,7 @@ namespace hex::pl {
if (largestMember == this->m_members.end())
return nullptr;
else
return *largestMember;
return (*largestMember)->getPattern(offset);;
}
private: