>From efc16a6402cd66f43fc050163f1996c2943aa340 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 23 May 2015 18:47:28 +0200 Subject: Remove superfluous alignment flags from wxSizer items. Don't use alignment for the expanding sizer items in the code and don't use both wxALIGN_CENTER and wxALIGN_CENTER_VERTICAL (which mean the same thing in a horizontal sizer), they are redundant. --- multidimgrid_any.cpp | 1 - rounding_view.xrc | 2 +- rounding_view_editor.cpp | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/multidimgrid_any.cpp b/multidimgrid_any.cpp index 918ccfa..d0c2a12 100644 --- a/multidimgrid_any.cpp +++ b/multidimgrid_any.cpp @@ -415,7 +415,6 @@ bool MultiDimGrid::Create (grid_ ,wxSizerFlags() .Proportion(1) - .Right() .Expand() .Border(wxALL, 1) ); diff --git a/rounding_view.xrc b/rounding_view.xrc index 08781d7..dd1b21a 100644 --- a/rounding_view.xrc +++ b/rounding_view.xrc @@ -34,7 +34,7 @@ - wxALIGN_CENTER|wxALIGN_CENTER_VERTICAL + wxALIGN_CENTER wxHORIZONTAL diff --git a/rounding_view_editor.cpp b/rounding_view_editor.cpp index d27e4db..9120812 100644 --- a/rounding_view_editor.cpp +++ b/rounding_view_editor.cpp @@ -216,7 +216,6 @@ void RoundingButtons::Create wxSizerFlags flags = wxSizerFlags() .Proportion(0) .Expand() - .Center() .Border(wxLEFT|wxRIGHT, 2) ; -- 2.1.0