1
0
mirror of synced 2025-01-19 01:24:15 +01:00

fix: Bookmarks not always creating new highlights correctly

This commit is contained in:
WerWolv 2022-03-26 16:54:15 +01:00
parent 35a520f132
commit 4b6a76bf02

View File

@ -49,7 +49,9 @@ namespace hex {
u32 addHighlight(const Region &region, color_t color, const std::string &tooltip) {
auto &highlights = impl::getHighlights();
auto id = highlights.size();
static u64 id = 0;
id++;
highlights.insert({
id, Highlighting {region, color, tooltip}