One more fix for LIB_BEZIER::Save()

This commit is contained in:
Maciej Suminski 2017-08-23 16:04:23 +02:00
parent aeac415599
commit 57619956e8
1 changed files with 2 additions and 4 deletions

View File

@ -54,12 +54,10 @@ LIB_BEZIER::LIB_BEZIER( LIB_PART* aParent ) :
bool LIB_BEZIER::Save( OUTPUTFORMATTER& aFormatter )
{
int ccount = GetCornerCount();
aFormatter.Print( 0, "B %d %d %d %d", ccount, m_Unit, m_Convert, m_Width );
aFormatter.Print( 0, "B %lu %d %d %d", m_BezierPoints.size(), m_Unit, m_Convert, m_Width );
for( const auto& pt : m_BezierPoints )
aFormatter.Print( 0, " %d %d", pt.x, pt.y );
aFormatter.Print( 0, " %d %d", pt.x, pt.y );
aFormatter.Print( 0, " %c\n", fill_tab[m_Fill] );