From 6697a7e49a0c0fe91fd3a5a9eb714d84e3c5b2e6 Mon Sep 17 00:00:00 2001 From: Ilya Ivanov Date: Thu, 27 Apr 2017 15:06:56 +0300 Subject: [PATCH] Fix wrong variable name in assignment in wxRichTextSizePage dtor The "sm_showMinMaxSizeControls" was assigned twice, while "sm_enablePositionAndSizeUnits" was not assigned at all, apparently by mistake. Thanks to PVS-Studio for finding this issue (V519 The 'sm_showMinMaxSizeControls' variable is assigned values twice successively). --- src/richtext/richtextsizepage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/richtext/richtextsizepage.cpp b/src/richtext/richtextsizepage.cpp index 585c88e4da..7ace91a0bb 100644 --- a/src/richtext/richtextsizepage.cpp +++ b/src/richtext/richtextsizepage.cpp @@ -116,7 +116,7 @@ wxRichTextSizePage::~wxRichTextSizePage() sm_showAlignmentControls = true; sm_showFloatingAndAlignmentControls = true; sm_showMinMaxSizeControls = true; - sm_showMinMaxSizeControls = true; + sm_enablePositionAndSizeUnits = true; sm_enablePositionAndSizeCheckboxes = true; sm_showMoveObjectControls = true;