From 25aa2bf8c7c11f0f90eea5e4910de5e955922ad6 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Fri, 14 Jul 2017 17:24:30 +1200 Subject: [PATCH] Right-align bearing widget in print/export dialog The change to allow the value to wrap round from 360 to 0 in 1.2.27 inadvertently made this control left-aligned (due to incorrect wx documentation of the default style for this control). --- src/printing.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/printing.cc b/src/printing.cc index d7667a1d..41429786 100644 --- a/src/printing.cc +++ b/src/printing.cc @@ -499,7 +499,8 @@ svxPrintDlg::svxPrintDlg(MainFrm* mainfrm_, const wxString & filename, anglebox->Add(brg_label, 0, wxALIGN_CENTRE_VERTICAL|wxALIGN_LEFT|wxALL, 5); // wSP_WRAP means that you can scroll past 360 to 0, and vice versa. m_bearing = new wxSpinCtrlDouble(this, svx_BEARING, wxEmptyString, - wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP); + wxDefaultPosition, wxDefaultSize, + wxSP_ARROW_KEYS|wxALIGN_RIGHT|wxSP_WRAP); m_bearing->SetRange(0.0, 360.0); m_bearing->SetDigits(ANGLE_DP); anglebox->Add(m_bearing, 0, wxALIGN_CENTRE|wxALL, 5); -- 2.11.4.GIT