wxString::both goes with Strip(), not Trim().

But Strip() is deprecated, so we shouldn't use it
(or wxString::leading/trailing/both) at all.
This commit is contained in:
Jeff Young
2025-09-16 17:51:11 +01:00
parent 87739c8ac7
commit 425b77b34c
13 changed files with 80 additions and 52 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ int CLI::SCH_EXPORT_PLOT_COMMAND::doPerform( KIWAY& aKiway )
wxStringTokenizer tokenizer( pagesStr, ",", wxTOKEN_STRTOK );
while( tokenizer.HasMoreTokens() )
pages.push_back( tokenizer.GetNextToken().Trim( wxString::both) );
pages.push_back( tokenizer.GetNextToken().Trim( true ).Trim( false ) );
std::unique_ptr<JOB_EXPORT_SCH_PLOT> plotJob;