diff --git a/ide/sourcesyneditor.pas b/ide/sourcesyneditor.pas index 131e59b302..096315fd90 100644 --- a/ide/sourcesyneditor.pas +++ b/ide/sourcesyneditor.pas @@ -509,9 +509,9 @@ begin if AnOnlyWeakerOrEqual and (WeakerByBounds = wParam) then // Entry can not be weaker continue; - if not ( ([WeakerByEnabled, WeakerByBounds, WeakerByCase] - [wEqual] = [wEntry]) or - ([WeakerByEnabled, WeakerByBounds, WeakerByCase] - [wEqual] = [wParam]) - ) + if ( ([WeakerByEnabled, WeakerByBounds, WeakerByCase] - [wEqual] = [wEntry]) or + ([WeakerByEnabled, WeakerByBounds, WeakerByCase] - [wEqual] = [wParam]) + ) then exit;