pagelayout_editor: fix some minor issues:

- text color not always stored in file
- Indicator for changes in main title not updated after save.
This commit is contained in:
jean-pierre charras 2023-02-09 14:15:01 +01:00
parent ee5b266ae2
commit 5da5ccc4bf
2 changed files with 4 additions and 2 deletions

View File

@ -248,7 +248,8 @@ void DS_DATA_MODEL_IO::format( DS_DATA_ITEM_TEXT* aItem, int aNestLevel ) const
bool write_size = aItem->m_TextSize.x != 0.0 || aItem->m_TextSize.y != 0.0;
bool write_thickness = aItem->m_LineWidth != 0.0;
if( write_thickness || write_size || aItem->m_Bold || aItem->m_Italic )
if( write_thickness || write_size || aItem->m_Bold
|| aItem->m_Italic || aItem->m_TextColor != COLOR4D::UNSPECIFIED )
{
m_out->Print( 0, " (font" );

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2013 CERN
* Copyright (C) 2017-2021 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2017-2023 KiCad Developers, see AUTHORS.txt for contributors.
*
* @author Jean-Pierre Charras, jp.charras at wanadoo.fr
*
@ -314,6 +314,7 @@ bool PL_EDITOR_FRAME::SaveDrawingSheetFile( const wxString& aFullFileName )
m_infoBar->Dismiss();
GetScreen()->SetContentModified( false );
UpdateTitleAndInfo();
return true;
}