Correct restoration of tree icon logic

This commit is contained in:
Graham Dawes
2019-02-11 13:00:42 +00:00
parent 8ab2d9c944
commit 8141586102

View File

@@ -426,6 +426,9 @@ private:
imageIndex = states[wxTreeItemIcon_Selected]; imageIndex = states[wxTreeItemIcon_Selected];
} }
if ( imageIndex == -1 )
imageIndex = states[wxTreeItemIcon_Normal];
return imageIndex; return imageIndex;
} }