Index: xfa/fwl/core/cfwl_form.cpp |
diff --git a/xfa/fwl/core/cfwl_form.cpp b/xfa/fwl/core/cfwl_form.cpp |
index 00d47d410038764a41610b2604b85a6403d8c767..1fe5e90b87e2bdd2035291ee2fc2df3b732cbdbf 100644 |
--- a/xfa/fwl/core/cfwl_form.cpp |
+++ b/xfa/fwl/core/cfwl_form.cpp |
@@ -281,7 +281,7 @@ CFWL_Widget* CFWL_Form::DoModal() { |
pDriver->PushNoteLoop(m_pNoteLoop.get()); |
m_bDoModalFlag = true; |
- SetStates(FWL_WGTSTATE_Invisible, false); |
+ RemoveStates(FWL_WGTSTATE_Invisible); |
pDriver->Run(); |
#if _FX_OS_ != _FX_MACOSX_ |
@@ -310,9 +310,9 @@ void CFWL_Form::EndDoModal() { |
return; |
pDriver->PopNoteLoop(); |
- SetStates(FWL_WGTSTATE_Invisible, true); |
+ SetStates(FWL_WGTSTATE_Invisible); |
#else |
- SetStates(FWL_WGTSTATE_Invisible, true); |
+ SetStates(FWL_WGTSTATE_Invisible); |
m_pNoteLoop->EndModalLoop(); |
#endif |
} |