Make m_originalColWidths impervious to init-order issues.

This commit is contained in:
Jeff Young 2024-02-08 15:07:14 +00:00
parent abb1915114
commit f8b8bc78bd
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ private:
int m_delayedFocusRow;
int m_delayedFocusColumn;
int m_originalColWidths[ COL_COUNT ];
std::map<int, int> m_originalColWidths; // map col-number : orig-col-width
wxSize m_size;
bool m_initialized;
inline static bool s_alternatesTurndownOpen = false;

View File

@ -83,7 +83,7 @@ private:
std::map<wxString, std::shared_ptr<NETCLASS>> m_lastLoaded;
int m_lastCheckedTicker;
std::vector<int> m_originalColWidths;
std::map<int, int> m_originalColWidths; // Map col-number : orig-col-width
bool m_netclassesDirty; // The netclass drop-down menus need rebuilding
int m_hoveredCol; // Column being hovered over, for tooltips
wxString m_lastPattern;