Passing a string to LIBRARY_TABLE's c'tor doesn't do what you think it does.

Also fixes nested tables being deleted out from under
the dialog.

Also fixes a bug where PANEL_DESIGN_BLOCK_LIB_TABLE
had fallen behind the the other two.
This commit is contained in:
Jeff Young
2026-01-20 13:18:46 +00:00
parent a8fcc466cd
commit f4e025596b
12 changed files with 47 additions and 33 deletions
+3 -1
View File
@@ -140,10 +140,12 @@ public:
/**
* Creates a library table from parsed text
* @param aFromClipboard isn't actually used, but might keep people from calling this with a string
* filepath, which isn't going to do what they expected.
* @param aBuffer is a string containing data to parse
* @param aScope is the scope of this table (is it global or part of a project)
*/
LIBRARY_TABLE( const wxString &aBuffer, LIBRARY_TABLE_SCOPE aScope );
LIBRARY_TABLE( bool aFromClipboard, const wxString &aBuffer, LIBRARY_TABLE_SCOPE aScope );
~LIBRARY_TABLE() = default;