Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Fix dialog crash when trying to move down when there are no links
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammie committed Sep 16, 2023
1 parent bcdb692 commit f6d068d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/dialog/src/link_describe.cpp
Expand Up @@ -295,7 +295,7 @@ DlgLinkDescribe &DlgLinkDescribe::MoveUp()

bool DlgLinkDescribe::CanMoveDown() const noexcept
{
return selectedLine_ < lineBreaks_.size() - 1;
return lineBreaks_.size() > 0 && selectedLine_ < lineBreaks_.size() - 1;
}

DlgLinkDescribe &DlgLinkDescribe::MoveDown()
Expand Down

0 comments on commit f6d068d

Please sign in to comment.