*.kicad_sch files: add missing quotes to uuid string for some grahic shapes.

Uuid strings are (like other strings) quoted, but a few items were missing quotes.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21360
This commit is contained in:
jean-pierre charras 2025-07-23 17:07:35 +02:00
parent ec155c00f3
commit eb473012a6

View File

@ -236,7 +236,7 @@ void formatArc( OUTPUTFORMATTER* aFormatter, EDA_SHAPE* aArc, bool aIsPrivate,
formatFill( aFormatter, aFillMode, aFillColor );
if( aUuid != niluuid )
aFormatter->Print( "(uuid %s)", TO_UTF8( aUuid.AsString() ) );
aFormatter->Print( "(uuid %s)", aFormatter->Quotew( aUuid.AsString() ).c_str() );
aFormatter->Print( ")" );
}
@ -255,7 +255,7 @@ void formatCircle( OUTPUTFORMATTER* aFormatter, EDA_SHAPE* aCircle, bool aIsPriv
formatFill( aFormatter, aFillMode, aFillColor );
if( aUuid != niluuid )
aFormatter->Print( "(uuid %s)", TO_UTF8( aUuid.AsString() ) );
aFormatter->Print( "(uuid %s)", aFormatter->Quotew( aUuid.AsString() ).c_str() );
aFormatter->Print( ")" );
}
@ -273,7 +273,7 @@ void formatRect( OUTPUTFORMATTER* aFormatter, EDA_SHAPE* aRect, bool aIsPrivate,
formatFill( aFormatter, aFillMode, aFillColor );
if( aUuid != niluuid )
aFormatter->Print( "(uuid %s)", TO_UTF8( aUuid.AsString() ) );
aFormatter->Print( "(uuid %s)", aFormatter->Quotew( aUuid.AsString() ).c_str() );
aFormatter->Print( ")" );
}
@ -298,7 +298,7 @@ void formatBezier( OUTPUTFORMATTER* aFormatter, EDA_SHAPE* aBezier, bool aIsPriv
formatFill( aFormatter, aFillMode, aFillColor );
if( aUuid != niluuid )
aFormatter->Print( "(uuid %s)", TO_UTF8( aUuid.AsString() ) );
aFormatter->Print( "(uuid %s)", aFormatter->Quotew( aUuid.AsString() ).c_str() );
aFormatter->Print( ")" );
}
@ -331,7 +331,7 @@ void formatPoly( OUTPUTFORMATTER* aFormatter, EDA_SHAPE* aPolyLine, bool aIsPriv
formatFill( aFormatter, aFillMode, aFillColor );
if( aUuid != niluuid )
aFormatter->Print( "(uuid %s)", TO_UTF8( aUuid.AsString() ) );
aFormatter->Print( "(uuid %s)", aFormatter->Quotew( aUuid.AsString() ).c_str() );
aFormatter->Print( ")" );
}