diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-14 14:15:03 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-14 14:39:03 +0200 |
commit | 19efa546ab88ea4b3943bb05405752dee7e57623 (patch) | |
tree | 9e456c242e0bcfae09155bab6d22e707885d0efd /sw | |
parent | 85fde3735afb306b4c3aba72a9c99d19c71546fa (diff) |
sw: assert that UnlockExpFlds() isn't called when it's not locked
Change-Id: Ibe2394978b776dd4a91a253856040fc45f81c7e9
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/DocumentFieldsManager.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/doc/DocumentFieldsManager.cxx b/sw/source/core/doc/DocumentFieldsManager.cxx index b9b3607cf9c5..870685e656b9 100644 --- a/sw/source/core/doc/DocumentFieldsManager.cxx +++ b/sw/source/core/doc/DocumentFieldsManager.cxx @@ -1207,6 +1207,7 @@ void DocumentFieldsManager::LockExpFlds() void DocumentFieldsManager::UnlockExpFlds() { + assert(mnLockExpFld != 0); if( mnLockExpFld ) --mnLockExpFld; } |