Reduce KICAD_VERSION in drawing sheets to something simple
This commit is contained in:
parent
00aed2aa3e
commit
22288adb7d
|
@ -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( "#" ) ) )
|
||||||
|
|
Loading…
Reference in New Issue