fix buglet in RAII mgmt of Bindings::_drags_active

This commit is contained in:
Paul Davis 2022-04-18 12:21:57 -06:00
parent 729f930974
commit c0b1f0e63c

View File

@ -170,7 +170,7 @@ class LIBGTKMM2EXT_API Bindings {
struct DragsBlockBindings {
DragsBlockBindings() { Bindings::_drag_active++; }
~DragsBlockBindings() {
if (Bindings::_drag_active--) {
if (Bindings::_drag_active) {
Bindings::_drag_active--;
}
}