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

@ -76,7 +76,7 @@ private:
LIB_PIN* m_pin;
LIB_SYMBOL* m_dummyParent;
LIB_PIN* m_dummyPin; // a working copy used to show changes
LIB_PIN* m_dummyPin; // a working copy used to show changes
UNIT_BINDER m_posX;
UNIT_BINDER m_posY;
@ -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;