From fcd254f08c1aabfd5992a86d81db6174b67bea7f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 22 Feb 2016 11:38:18 +0200 Subject: [PATCH] Fixed bug disabling tool True darts. (grafted from 8c5aeccb775c10068c8f20a881994b3b4fac808a) --HG-- branch : develop --- ChangeLog.txt | 1 + .../drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 906bc70b7..ee273b26d 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,7 @@ - [#385] Add 'Open Recent' option in Tape.exe, 'File' dropdown menu. # Version 0.4.3 +- Fixed bug disabling tool True darts. - Fixed wrong calculation tool True darts. - [#405] Fixed crash after deleting first pattern piece in the list. diff --git a/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp b/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp index 099e23a8d..e0fc1ae3c 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp @@ -128,8 +128,8 @@ void VToolDoublePoint::Disable(bool disable, const QString &namePP) { enabled = !CorrectDisable(disable, namePP); this->SetEnabled(enabled); - firstPoint->setEnabled(enabled); - secondPoint->setEnabled(enabled); + firstPoint->SetEnabled(enabled); + secondPoint->SetEnabled(enabled); } //---------------------------------------------------------------------------------------------------------------------