Only generate fake focus lost events when using the generic implementation

This commit is contained in:
Thomas Goyne 2013-06-26 12:59:10 -07:00
parent a4dd4f6986
commit 96d7912d0b

View file

@ -292,8 +292,10 @@ namespace Automation4 {
bool TransferFromWindow() {
auto ctrl = static_cast<wxSpinCtrlDouble*>(GetWindow());
#ifndef wxHAS_NATIVE_SPINCTRLDOUBLE
wxFocusEvent evt;
ctrl->OnTextLostFocus(evt);
#endif
*value = ctrl->GetValue();
return true;
}