From 2f3bbc667055e0c87f60c1aa04de665c68f212b2 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 18 Jul 2024 15:00:33 +1000 Subject: [PATCH] Fix ratio lock button is incorrectly pressed when unlocking via API --- src/gui/qgsratiolockbutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/qgsratiolockbutton.cpp b/src/gui/qgsratiolockbutton.cpp index a222c620af43..c9a7ef4fb4a2 100644 --- a/src/gui/qgsratiolockbutton.cpp +++ b/src/gui/qgsratiolockbutton.cpp @@ -44,7 +44,7 @@ void QgsRatioLockButton::setLocked( const bool locked ) void QgsRatioLockButton::buttonClicked() { mLocked = !mLocked; - setDown( mLocked ); + setChecked( mLocked ); emit lockChanged( mLocked );