Chromium Code Reviews| Index: xfa/fxfa/app/xfa_ffdocview.cpp |
| diff --git a/xfa/fxfa/app/xfa_ffdocview.cpp b/xfa/fxfa/app/xfa_ffdocview.cpp |
| index efda0430d3bba06a2f2a9079c60f356ead117964..f82cc5eafb8e9ad19fc6674b303fc11c66846296 100644 |
| --- a/xfa/fxfa/app/xfa_ffdocview.cpp |
| +++ b/xfa/fxfa/app/xfa_ffdocview.cpp |
| @@ -536,7 +536,7 @@ void CXFA_FFDocView::UnlockUpdate() { |
| m_iLock--; |
| } |
| FX_BOOL CXFA_FFDocView::IsUpdateLocked() { |
| - return m_iLock; |
| + return m_iLock > 0; |
|
Tom Sepez
2016/10/27 21:04:49
just in case we unlock it too many times.
Lei Zhang
2016/10/27 21:28:52
Maybe UnlockUpdate() should ASSERT...
|
| } |
| void CXFA_FFDocView::ClearInvalidateList() { |
| m_mapPageInvalidate.clear(); |