Fix bug 741352.

This commit is contained in:
jean-pierre charras 2011-03-25 21:44:48 +01:00
parent 38269efa47
commit e68662c19e
1 changed files with 3 additions and 4 deletions

View File

@ -78,7 +78,7 @@ bool TEXTE_MODULE::Save( FILE* aFile ) const
if( parent ) if( parent )
orient += parent->m_Orient; orient += parent->m_Orient;
int ret = fprintf( aFile, "T%d %d %d %d %d %d %d %c %c %d %c\"%s\"\n", int ret = fprintf( aFile, "T%d %d %d %d %d %d %d %c %c %d %c %s\n",
m_Type, m_Type,
m_Pos0.x, m_Pos0.y, m_Pos0.x, m_Pos0.y,
m_Size.y, m_Size.x, m_Size.y, m_Size.x,
@ -159,12 +159,11 @@ int TEXTE_MODULE::ReadDescr( LINE_READER* aReader )
SetLayer( layer ); SetLayer( layer );
// Calculate the true position. // Calculate the actual position.
SetDrawCoord(); SetDrawCoord();
// Read the "text" string. // Search and read the "text" string (a quoted text).
// @todo why is line not incremented, what are we reading here?
ReadDelimitedText( &m_Text, line ); ReadDelimitedText( &m_Text, line );
// Test for a reasonable size: // Test for a reasonable size: