From 5aa66ffd936d00d101f12d6e8305a0d2f6c82cc2 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 3 Aug 2017 11:21:18 +0200 Subject: [PATCH] Fix text alignment in wxRadioButton Label should be always left-aligned to be positioned just next to the button image. See #17933. --- src/osx/cocoa/radiobut.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osx/cocoa/radiobut.mm b/src/osx/cocoa/radiobut.mm index 05e1a021d2..0ec7fb4b27 100644 --- a/src/osx/cocoa/radiobut.mm +++ b/src/osx/cocoa/radiobut.mm @@ -109,6 +109,7 @@ wxWidgetImplType* wxWidgetImpl::CreateRadioButton( wxWindowMac* wxpeer, wxNSRadioButton* v = [[wxNSRadioButton alloc] initWithFrame:r]; [v setButtonType:NSRadioButton]; + [v setAlignment:NSLeftTextAlignment]; static int alternateAction = 1;