[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] (no subject)
From: |
Greg Chicares |
Subject: |
[lmi-commits] (no subject) |
Date: |
Tue, 7 Jun 2016 23:43:04 +0000 (UTC) |
branch: master
commit aa21ccda927dad8598b9912d24519d8df00b925d
Author: Gregory W. Chicares <address@hidden>
Date: Tue Jun 7 23:42:24 2016 +0000
Robustly show name of control in Transferror warnings
Use GetName() instead of GetLabel().
---
transferor.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/transferor.cpp b/transferor.cpp
index 62c7bc2..24558c2 100644
--- a/transferor.cpp
+++ b/transferor.cpp
@@ -255,7 +255,7 @@ namespace
else
{
warning()
- << "Control '" << control.GetLabel() << "':"
+ << "Control '" << control.GetName() << "':"
<< " expected 'Yes' or 'No', but got '" << data << "'."
<< LMI_FLUSH
;
@@ -295,7 +295,7 @@ namespace
else
{
warning()
- << "Control '" << control.GetLabel() << "':"
+ << "Control '" << control.GetName() << "':"
<< " invalid entry '" << data << "'."
<< LMI_FLUSH
;
@@ -331,7 +331,7 @@ namespace
if(!(wxLB_SINGLE & control.GetWindowStyle()))
{
fatal_error()
- << "CheckListBox '" << control.GetLabel() << "':"
+ << "CheckListBox '" << control.GetName() << "':"
<< " must be constrained to a single selection."
<< LMI_FLUSH
;
@@ -349,7 +349,7 @@ namespace
if(!(wxCB_READONLY & control.GetWindowStyle()))
{
fatal_error()
- << "ComboBox '" << control.GetLabel() << "':"
+ << "ComboBox '" << control.GetName() << "':"
<< " must be read only."
<< LMI_FLUSH
;
@@ -411,7 +411,7 @@ namespace
if(!(wxLB_SINGLE & control.GetWindowStyle()))
{
fatal_error()
- << "ListBox '" << control.GetLabel() << "':"
+ << "ListBox '" << control.GetName() << "':"
<< " must be constrained to a single selection."
<< LMI_FLUSH
;