From 3394f22a93ae8250429776ed291086907264a5a2 Mon Sep 17 00:00:00 2001 From: wangqr Date: Tue, 10 Mar 2020 01:15:58 -0400 Subject: [PATCH] Expand layer SpinCtrl a little to compensate wxMac bug with GetSizeFromText --- src/subs_edit_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/subs_edit_box.cpp b/src/subs_edit_box.cpp index af3b2c556..0cbe2aed6 100644 --- a/src/subs_edit_box.cpp +++ b/src/subs_edit_box.cpp @@ -159,9 +159,9 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context) // http://gtk.10911.n7.nabble.com/gtk-widget-set-size-request-stopped-working-with-GTK3-td26274.html // https://trac.wxwidgets.org/ticket/18568 #elif wxCHECK_VERSION(3, 1, 3) - layer->SetInitialSize(layer->GetSizeFromText(wxS("0"))); + layer->SetInitialSize(layer->GetSizeFromText(wxS("00"))); #else - layer->SetInitialSize(layer->GetSizeFromTextSize(GetTextExtent(wxS("0")))); + layer->SetInitialSize(layer->GetSizeFromTextSize(GetTextExtent(wxS("00")))); #endif layer->SetToolTip(_("Layer number")); middle_left_sizer->Add(layer, wxSizerFlags().Center());