Page layout editor: custom text size not saved when X or Y size value is not default. (fixes lp:1538603)
This commit is contained in:
parent
c50763bd5b
commit
bf6cd8445a
|
@ -237,8 +237,9 @@ void WORKSHEET_LAYOUT_IO::format( WORKSHEET_DATAITEM_TEXT* aItem, int aNestLevel
|
|||
m_out->Print( 0, " (%s %s)", getTokenName( T_rotate ),
|
||||
double2Str(aItem->m_Orient ).c_str() );
|
||||
|
||||
// Write font info
|
||||
bool write_size = aItem->m_TextSize.x != 0.0 && aItem->m_TextSize.y != 0.0;
|
||||
// Write font info, only if it is not the default setup
|
||||
bool write_size = aItem->m_TextSize.x != 0.0 || aItem->m_TextSize.y != 0.0;
|
||||
|
||||
if( write_size || aItem->IsBold() || aItem->IsItalic() )
|
||||
{
|
||||
m_out->Print( 0, " (%s", getTokenName( T_font ) );
|
||||
|
|
Loading…
Reference in New Issue