From 41ac458e79d0a965ea8fd2734481116fab04da45 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 18 Apr 2018 09:36:09 +0200 Subject: [PATCH] Fixed SCH_LEGACY_PLUGIN_CACHE::saveBezier() --- eeschema/sch_legacy_plugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eeschema/sch_legacy_plugin.cpp b/eeschema/sch_legacy_plugin.cpp index edc778e601..aa782c0f3a 100644 --- a/eeschema/sch_legacy_plugin.cpp +++ b/eeschema/sch_legacy_plugin.cpp @@ -3630,7 +3630,6 @@ void SCH_LEGACY_PLUGIN_CACHE::saveSymbol( LIB_PART* aSymbol, saveBezier( (LIB_BEZIER*) &item, aFormatter ); break; - case LIB_CIRCLE_T: saveCircle( ( LIB_CIRCLE* ) &item, aFormatter ); break; @@ -3692,7 +3691,7 @@ void SCH_LEGACY_PLUGIN_CACHE::saveBezier( LIB_BEZIER* aBezier, { wxCHECK_RET( aBezier && aBezier->Type() == LIB_BEZIER_T, "Invalid LIB_BEZIER object." ); - aFormatter->Print( 0, "B %lu %d %d %d", (unsigned long)aBezier->GetCornerCount(), + aFormatter->Print( 0, "B %lu %d %d %d", aBezier->GetPoints().size(), aBezier->GetUnit(), aBezier->GetConvert(), aBezier->GetWidth() ); for( const auto& pt : aBezier->GetPoints() )