[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] [PATCH] fix InputSequenceEditor error messages
From: |
Vaclav Slavik |
Subject: |
[lmi] [PATCH] fix InputSequenceEditor error messages |
Date: |
Tue, 12 Jul 2011 16:31:01 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
Hi,
please apply this simple patch on top of the others.
It fixes diagnostics messages to use human numbering instead
of zero-based.
Thanks,
Vaclav
diff --git a/input_sequence_entry.cpp b/input_sequence_entry.cpp
index 619587e..e24a364 100755
--- a/input_sequence_entry.cpp
+++ b/input_sequence_entry.cpp
@@ -1055,10 +1055,10 @@ wxString InputSequenceEditor::get_diagnostics_message()
{
wxString const value = value_field(row).GetValue();
if(value.empty())
- return wxString::Format("Missing value on row %d.", row);
+ return wxString::Format("Missing value on row %d.", row + 1);
if(!is_valid_value(value))
- return wxString::Format("Invalid keyword \"%s\" on row %d.",
value.c_str(), row);
+ return wxString::Format("Invalid keyword \"%s\" on row %d.",
value.c_str(), row + 1);
}
// As fallback, parse the sequence and check the diagnostics. This may be
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi] [PATCH] fix InputSequenceEditor error messages,
Vaclav Slavik <=