Index: xfa/fwl/basewidget/fwl_pushbuttonimp.cpp |
diff --git a/xfa/fwl/basewidget/fwl_pushbuttonimp.cpp b/xfa/fwl/basewidget/fwl_pushbuttonimp.cpp |
index b1e5f6bdb41a921f822adfa6f1a71440f0bb4fa1..6fab925c91d7e31828195835fa034987f7020aec 100644 |
--- a/xfa/fwl/basewidget/fwl_pushbuttonimp.cpp |
+++ b/xfa/fwl/basewidget/fwl_pushbuttonimp.cpp |
@@ -83,13 +83,15 @@ FWL_ERR CFWL_PushButtonImp::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) { |
} |
return FWL_ERR_Succeeded; |
} |
-FWL_ERR CFWL_PushButtonImp::SetStates(uint32_t dwStates, FX_BOOL bSet) { |
+ |
+void CFWL_PushButtonImp::SetStates(uint32_t dwStates, FX_BOOL bSet) { |
if ((dwStates & FWL_WGTSTATE_Disabled) && bSet) { |
m_pProperties->m_dwStates = FWL_WGTSTATE_Disabled; |
- return FWL_ERR_Succeeded; |
+ return; |
} |
- return CFWL_WidgetImp::SetStates(dwStates, bSet); |
+ CFWL_WidgetImp::SetStates(dwStates, bSet); |
} |
+ |
FWL_ERR CFWL_PushButtonImp::Update() { |
if (IsLocked()) { |
return FWL_ERR_Indefinite; |