Explicitly convert from UTF-8 in wxSpinCtrl::GetTextValue()

Use UTF-8 encoding explicitly rather than relying on it being the
default.
This commit is contained in:
Vadim Zeitlin 2021-04-20 01:02:16 +02:00
parent f64da1eb36
commit 4b263ff10a

View File

@ -218,7 +218,7 @@ wxString wxSpinCtrlGTKBase::GetTextValue() const
{
wxCHECK_MSG(m_widget, wxEmptyString, "invalid spin button");
return gtk_entry_get_text( GTK_ENTRY(m_widget) );
return wxGTK_CONV_BACK(gtk_entry_get_text( GTK_ENTRY(m_widget) ));
}
bool wxSpinCtrlGTKBase::GetSnapToTicks() const