diff --git a/RedPandaIDE/utils.cpp b/RedPandaIDE/utils.cpp index ae9d4525..66c5baf4 100644 --- a/RedPandaIDE/utils.cpp +++ b/RedPandaIDE/utils.cpp @@ -600,7 +600,7 @@ void resetCppParser(std::shared_ptr parser, int compilerSetIndex) parser->setParseLocalHeaders(true); // Set options depending on the current compiler set // TODO: do this every time OnCompilerSetChanged - if (compilerSetIndex<-1) { + if (compilerSetIndex<0) { compilerSetIndex=pSettings->compilerSets().defaultIndex(); } Settings::PCompilerSet compilerSet = pSettings->compilerSets().getSet(compilerSetIndex);