diff --git a/src/preferences/time/DateTimeEdit.cpp b/src/preferences/time/DateTimeEdit.cpp index 134491aa61..011cce9ab4 100644 --- a/src/preferences/time/DateTimeEdit.cpp +++ b/src/preferences/time/DateTimeEdit.cpp @@ -518,7 +518,7 @@ TDateEdit::DrawSection(uint32 index, bool hasFocus) void TDateEdit::DrawSeparator(uint32 index) { - if (index < 0 || index >= 2) + if (index >= 2) return; TSection* section = static_cast(fSectionList->ItemAt(index));