diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-11-09 17:33:22 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-11-09 20:42:28 +0100 |
commit | ea3fc61f29f6d53c4c65cf6026267f7a37ef1a87 (patch) | |
tree | cdb4cc096fa4c5c429268ac848d23b3b2a6910b9 /sfx2/source/appl/workwin.cxx | |
parent | a32dea330e5767a68754b19f6005a78618765c1a (diff) |
Fix sd toolbar manager lock underflows
Regressions from commit 45519023aa44 ("Resolves: tdf#119997
toolbar layout unlock doesn't refresh ui"), commit c5977a89c28b
("Resolves: tdf#96451 do magic to enable embedded chart sidebar
only for chart") and commit faed29cac93f ("for now show chart
sidebar").
It also adds an assert for the underflow, as nobody cared for
the underflow warnings since some years.
Change-Id: I86bb093987f084c85a7b640a846dfe0aefea9e48
Reviewed-on: https://gerrit.libreoffice.org/63204
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'sfx2/source/appl/workwin.cxx')
-rw-r--r-- | sfx2/source/appl/workwin.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index 26c211d644f8..b7f6eddd9777 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -543,6 +543,7 @@ void SfxWorkWindow::Lock_Impl( bool bLock ) if ( m_nLock<0 ) { OSL_FAIL("Lock count underflow!"); + assert(m_nLock >= 0); m_nLock = 0; } |