]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/advprops.cpp
check for wxUSE_REARRANGECTRL being defined
[wxWidgets.git] / src / propgrid / advprops.cpp
index 5c5a2e99fa81f9551ca567dbd08d325ad019c5ad..83d392b3102ddda516e10aee58a061d537d9e442 100644 (file)
@@ -1904,7 +1904,8 @@ void wxMultiChoiceProperty::GenerateValueAsString( wxVariant& value,
 
 wxArrayInt wxMultiChoiceProperty::GetValueAsIndices() const
 {
-    const wxArrayInt& valueArr = wxArrayIntRefFromVariant(GetValue());
+    wxVariant variant = GetValue();
+    const wxArrayInt& valueArr = wxArrayIntRefFromVariant(variant);
     unsigned int i;
 
     // Translate values to string indices.