Skip to content

Commit

Permalink
Fix issue with self terminating token
Browse files Browse the repository at this point in the history
  • Loading branch information
Isarhamster committed Feb 3, 2024
1 parent 81a338e commit f8aefe0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/database/pgndatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,8 @@ void PgnDatabase::splitTokenList(QVector<QStringRef>& list)
list.push_back(QStringRef(&m_currentLine, start+n-1, 1));
start += n;
n = 0;
dots = 0;
inNag = false;
}
break;

Expand Down Expand Up @@ -902,7 +904,7 @@ void PgnDatabase::parseToken(GameX* game, const QStringRef& token)
}
game->dbMoveToId(move);
game->forward();
m_newVariation = false;
m_newVariation = false;
m_variation = 0;
break;
case '{':
Expand Down

0 comments on commit f8aefe0

Please sign in to comment.