Skip to content

Commit

Permalink
CellML Text view: slight improvement to our lexer.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jan 30, 2020
1 parent 9eda696 commit b7b8acb
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -132,11 +132,13 @@ QFont CellmlTextViewLexer::font(int pStyle) const

void CellmlTextViewLexer::styleText(int pBytesStart, int pBytesEnd)
{
#ifdef QT_DEBUG
// Make sure that we have an editor

if (editor() == nullptr) {
return;
qFatal("FATAL ERROR | %s:%d: styling can only be performed with an editor.", __FILE__, __LINE__);
}
#endif

// Retrieve the text to style

Expand Down

0 comments on commit b7b8acb

Please sign in to comment.