Skip to content

Commit

Permalink
Remove wxPropertyGrid property bitmap
Browse files Browse the repository at this point in the history
This property was present probably because of a copy-paste error.
  • Loading branch information
sodevel committed Jul 16, 2024
1 parent 7e78e13 commit 4bfb3ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/additional/xml/data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ Written by

<objectinfo class="wxPropertyGrid" icon="propgrid.xpm" type="propgrid" startgroup="1" wxversion="2904" >
<inherits class="wxWindow"/>
<inherits class="AUI"/> <property name="bitmap" type="bitmap" help="This is the bitmap shown in the default state, it must be always valid while all the other bitmaps are optional and don't have to be set."/>
<inherits class="AUI"/>
<property name="style" type="bitlist">
<option name="wxPG_AUTO_SORT" help="This will cause Sort() automatically after an item is added. When inserting a lot of items in this mode, it may make sense to use Freeze() before operations and Thaw() afterwards to increase performance."/>
<option name="wxPG_HIDE_CATEGORIES" help="Categories are not initially shown (even if added)."/>
Expand Down
2 changes: 2 additions & 0 deletions src/rad/appdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,8 @@ void ApplicationData::ConvertObject(tinyxml2::XMLElement* object, int versionMaj
if (versionMajor < 1 || (versionMajor == 1 && versionMinor < 19)) {
if (objectClass == "wxStaticBoxSizer") {
RemoveProperties(object, {"id"});
} else if (objectClass == "wxPropertyGrid") {
RemoveProperties(object, {"bitmap"});
} else if (objectClass == "CustomCode") {
auto properties = GetProperties(object, {
"include_cpp", "code_cpp",
Expand Down

0 comments on commit 4bfb3ab

Please sign in to comment.