From 93f080bd9995cfd2ccc8f4e5fa6ff9668f4e2e1c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Dec 2014 01:31:03 +0000 Subject: [PATCH] Fix arguments of type mismatch error message in wxGTK wxDVC. The "required" and "actual" arguments were exchanged, making the message pretty confusing. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dataview.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index 3a6b62c230..81c4971be1 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -2913,9 +2913,10 @@ static void wxGtkTreeCellDataFunc( GtkTreeViewColumn *WXUNUSED(column), if (value.GetType() != cell->GetVariantType()) { - wxLogError( wxT("Wrong type, required: %s but: %s"), - value.GetType().c_str(), - cell->GetVariantType().c_str() ); + wxLogError("Wrong type returned from the model: " + "%s required but actual type is %s", + cell->GetVariantType(), + value.GetType()); } cell->SetValue( value );