Skip to content

Commit

Permalink
Fix wrong variable name in assignment in wxRichTextSizePage dtor
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
IlyaPVS authored and vadz committed Apr 29, 2017
1 parent ab7c39f commit 6697a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/richtext/richtextsizepage.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 6697a7e

Please sign in to comment.