diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-07 11:24:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-09 10:56:50 +0200 |
commit | 49297dc0b5fd4f8ef9f7b650342fe462f76d08d3 (patch) | |
tree | 1e3db7f471f53edcc32b2a44e66ca43d4d414a51 /svx/source/unodraw/unoshtxt.cxx | |
parent | b465a67e2e411f295fa8e91ee3289eda8ccba038 (diff) |
add assert to verify that lock() calls do not accidentally nest
Change-Id: I6582de99867f98a9afaf219c3bdd53c1f5fca509
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121772
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unodraw/unoshtxt.cxx')
-rw-r--r-- | svx/source/unodraw/unoshtxt.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx index e24f7c657bf3..cfb01211c129 100644 --- a/svx/source/unodraw/unoshtxt.cxx +++ b/svx/source/unodraw/unoshtxt.cxx @@ -795,6 +795,8 @@ void SvxTextEditSourceImpl::UpdateData() void SvxTextEditSourceImpl::lock() { + // if this assert ever fires, we will need to make this a counter instead of a boolean + assert(!mbIsLocked && "cannot nest these loc() calls"); mbIsLocked = true; if( mpOutliner ) { |