Preserve legacy dimension information.

This commit is contained in:
Jeff Young 2021-12-17 23:31:37 +00:00
parent 699ba78b74
commit a17a58203b
1 changed files with 4 additions and 1 deletions

View File

@ -2675,7 +2675,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
char buf[2048]; char buf[2048];
ReadDelimitedText( buf, line + SZ( "Te" ), sizeof(buf) ); ReadDelimitedText( buf, line + SZ( "Te" ), sizeof(buf) );
dim->SetText( FROM_UTF8( buf ) ); dim->SetOverrideText( FROM_UTF8( buf ) );
dim->SetOverrideTextEnabled( true );
dim->SetUnitsFormat( DIM_UNITS_FORMAT::NO_SUFFIX );
dim->SetAutoUnits();
} }
else if( TESTLINE( "Po" ) ) else if( TESTLINE( "Po" ) )
{ {