Skip to content

Commit 91ed375

Browse files
committed
Fixed bug in Multi-line trigger dialog
1 parent e26eeb6 commit 91ed375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dialogs/MultiLineTriggerDlg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ void CMultiLineTriggerDlg::DoDataExchange(CDataExchange* pDX)
5959
if (*p == '\n')
6060
iCount++;
6161

62-
if (iCount < 1)
62+
if (iCount <= 1)
6363
{
6464
::TMessageBox("Multi-line triggers must match at least 2 lines.", MB_ICONSTOP);
6565
DDX_Text(pDX, IDC_TRIGGER_TEXT, m_strTriggerText);
6666
pDX->Fail();
67-
} // end of text being blank
67+
} // end of not having at least 2 lines
6868

6969
if (iCount > MAX_RECENT_LINES)
7070
{

0 commit comments

Comments
 (0)