Skip to content

Commit

Permalink
fix #3435
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Dec 19, 2023
1 parent 526d079 commit 5b7e8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/latexdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ QDocumentSelection LatexDocument::sectionSelection(StructureEntry *section)
do{
++iter;
se=*iter;
}while(iter!=docStructure.cend() && se->type!=StructureEntry::SE_SECTION && se->level>level);
}while(iter!=docStructure.cend() && (se->type!=StructureEntry::SE_SECTION || se->level>level));
if(iter==docStructure.cend()){
se=nullptr;
}else{
Expand Down

0 comments on commit 5b7e8cb

Please sign in to comment.