Skip to content

Commit

Permalink
fix #3936
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Jan 8, 2025
1 parent 45f684b commit 12efa03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/latexparser/latexparsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ bool latexDetermineContexts2(QDocumentLineHandle *dlh, TokenStack &stack, Comman
//lastComma = -1;
lastEqual = level;
level++;
if(lp->commandDefs.contains(commandStack.top().optionalCommandName + "/" + keyName)){
if(!commandStack.isEmpty() && lp->commandDefs.contains(commandStack.top().optionalCommandName + "/" + keyName)){
// handle keyval values with normal commandStack mechanism (mandatory argument only!!)
// allows argument classification
CommandDescription cd = lp->commandDefs.value(commandStack.top().optionalCommandName + "/" + keyName);
Expand Down

0 comments on commit 12efa03

Please sign in to comment.