Reduce KICAD_VERSION in drawing sheets to something simple

This commit is contained in:
Marek Roszko 2024-01-28 15:46:06 -05:00
parent 00aed2aa3e
commit 22288adb7d
1 changed files with 3 additions and 7 deletions

View File

@ -40,7 +40,7 @@
using namespace KIGFX; using namespace KIGFX;
static const wxString productName = wxT( "KiCad E.D.A. " ); static const wxString productName = wxT( "KiCad E.D.A." );
DS_RENDER_SETTINGS::DS_RENDER_SETTINGS() DS_RENDER_SETTINGS::DS_RENDER_SETTINGS()
{ {
@ -121,13 +121,9 @@ wxString DS_DRAW_ITEM_LIST::BuildFullText( const wxString& aTextbase )
if( token->IsSameAs( wxT( "KICAD_VERSION" ) ) && PgmOrNull() ) if( token->IsSameAs( wxT( "KICAD_VERSION" ) ) && PgmOrNull() )
{ {
// TODO: it'd be nice to get the Python script name/version here for when *token = wxString::Format( wxT( "%s %s" ),
// PgmOrNull() is null...
*token = wxString::Format( wxT( "%s%s %s" ),
productName, productName,
Pgm().App().GetAppName(), GetMajorMinorPatchVersion() );
GetBuildVersion() );
tokenUpdated = true; tokenUpdated = true;
} }
else if( token->IsSameAs( wxT( "#" ) ) ) else if( token->IsSameAs( wxT( "#" ) ) )