]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/radiobox.cpp
don't call SelectObject() twice in SetBrush() nor SetFont() neither
[wxWidgets.git] / src / os2 / radiobox.cpp
index 94792b521704e73b29d220314c89f46940044e8d..ce228dc3102830798b20b4b4f5195ce5b4db5ad0 100644 (file)
@@ -266,7 +266,7 @@ bool wxRadioBox::Create(
 , const wxString&                   rsName
 )
 {
-    wxCArrayString(asChoices);
+    wxCArrayString chs(asChoices);
 
     return Create(pParent, vId, rsTitle, rPos, rSize, chs.GetCount(),
                   chs.GetStrings(), nMajorDim, lStyle, rVal, rsName);