From b216e802a35c4cc068b7c4f21d0a8490381f0787 Mon Sep 17 00:00:00 2001 From: "stevethefiddle@gmail.com" Date: Sat, 17 May 2014 13:33:41 +0000 Subject: [PATCH] Bug 442 - Extended Import segfault pressing Move Rule Up when there are no rules or filters. --- src/prefs/ExtImportPrefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prefs/ExtImportPrefs.cpp b/src/prefs/ExtImportPrefs.cpp index 8d354ab29..f04049abe 100644 --- a/src/prefs/ExtImportPrefs.cpp +++ b/src/prefs/ExtImportPrefs.cpp @@ -349,7 +349,7 @@ void ExtImportPrefs::DoOnRuleTableKeyDown (int keycode) wxString ts; if (keycode == WXK_UP) { - if (selrow == 0) + if (selrow <= 0) return; SwapRows (selrow - 1, selrow); RuleTable->MoveCursorUp (false);