]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/props.cpp
no changes, just clarified a comment
[wxWidgets.git] / src / propgrid / props.cpp
index 20812ce956c5515782bef359fce718d59ff4ace9..8b1d54342c7588d16839dbd118451a70b9b07906 100644 (file)
@@ -1241,16 +1241,17 @@ void wxFlagsProperty::Init()
                 child_val = ( value & (1<<i) )?true:false;
 
             wxPGProperty* boolProp;
+            wxString label = GetLabel(i);
 
         #if wxUSE_INTL
             if ( wxPGGlobalVars->m_autoGetTranslation )
             {
-                boolProp = new wxBoolProperty( ::wxGetTranslation( GetLabel(i) ), wxEmptyString, child_val );
+                boolProp = new wxBoolProperty( ::wxGetTranslation(label), label, child_val );
             }
             else
         #endif
             {
-                boolProp = new wxBoolProperty( GetLabel(i), wxEmptyString, child_val );
+                boolProp = new wxBoolProperty( label, label, child_val );
             }
             AddChild(boolProp);
         }