Skip to content

Commit

Permalink
more asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
hemirt committed Oct 17, 2024
1 parent 1ca5d38 commit e288742
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/widgets/helper/NotebookTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ void NotebookTab::removeHighlightSources(const HighlightSources &toRemove)

if (!this->highlightSources_.highlightedSource.empty())
{
// keep HighlightState::Highlighted
assert(this->highlightState_ == HighlightState::Highlighted);
return;
}

Expand All @@ -338,6 +338,8 @@ void NotebookTab::removeHighlightSources(const HighlightSources &toRemove)
this->update();
}
}

assert(this->highlightState_ != HighlightState::Highlighted);
}

void NotebookTab::copyHighlightStateAndSourcesFrom(const NotebookTab *sourceTab)
Expand Down

0 comments on commit e288742

Please sign in to comment.