X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aa89a22b8e47000c98bff05c6f545f331f1c353..19da49fcd0dd496f1a25f8dda9237420b4ca18db:/src/univ/radiobox.cpp diff --git a/src/univ/radiobox.cpp b/src/univ/radiobox.cpp index 5c434fa20b..c758abf74b 100644 --- a/src/univ/radiobox.cpp +++ b/src/univ/radiobox.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "univradiobox.h" #endif @@ -153,6 +153,11 @@ bool wxRadioBox::Create(wxWindow *parent, SetClientSize(DoGetBestClientSize()); } + // Need to move the radiobox in order to move the radio buttons + wxPoint actualPos = GetPosition(); + wxSize actualSize = GetSize(); + DoMoveWindow(actualPos.x, actualPos.y, actualSize.x, actualSize.y); + // radiobox should already have selection so select at least one item SetSelection(0);