Skip to content

Commit

Permalink
Tag release version 7.0.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
stambaughw committed Dec 27, 2023
1 parent 1fdf7d0 commit 567c5bc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/KiCadVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# KiCad.
#
# Note: This version string should follow the semantic versioning system
set( KICAD_SEMANTIC_VERSION "7.0.10-rc1" )
set( KICAD_SEMANTIC_VERSION "7.0.10" )

# Default the version to the semantic version.
# This is overridden by the git repository tag though (if using git)
Expand Down
20 changes: 17 additions & 3 deletions eeschema/tools/sch_editor_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ void SCH_EDITOR_CONTROL::doCrossProbeSchToPcb( const TOOL_EVENT& aEvent, bool aF

int SCH_EDITOR_CONTROL::ExportSymbolsToLibrary( const TOOL_EVENT& aEvent )
{
bool savePowerSymbols = IsOK( m_frame, _( "Include power symbols in schematic to the library?" ) );
bool savePowerSymbols = IsOK( m_frame,
_( "Include power symbols in schematic to the library?" ) );

bool createNew = aEvent.IsAction( &EE_ACTIONS::exportSymbolsToNewLibrary );

Expand Down Expand Up @@ -425,7 +426,19 @@ int SCH_EDITOR_CONTROL::ExportSymbolsToLibrary( const TOOL_EVENT& aEvent )
LIB_SYMBOL* origSym = it.second;
LIB_SYMBOL* newSym = origSym->Flatten().release();

pi->SaveSymbol( dest.GetFullPath(), newSym );
try
{
pi->SaveSymbol( dest.GetFullPath(), newSym );
}
catch( const IO_ERROR& ioe )
{
wxString msg;
msg.Printf( _( "Error saving symbol %s to library '%s'." ),
newSym->GetName(), row->GetNickName() );
msg += wxS( "\n\n" ) + ioe.What();
wxLogWarning( msg );
return 0;
}

if( map )
{
Expand All @@ -434,7 +447,8 @@ int SCH_EDITOR_CONTROL::ExportSymbolsToLibrary( const TOOL_EVENT& aEvent )

for( SCH_SYMBOL* symbol : symbolMap[it.first] )
{
m_frame->SaveCopyInUndoList( m_frame->GetScreen(), symbol, UNDO_REDO::CHANGED, append, false);
m_frame->SaveCopyInUndoList( m_frame->GetScreen(), symbol, UNDO_REDO::CHANGED,
append, false );
symbol->SetLibId( id );
append = true;
}
Expand Down

0 comments on commit 567c5bc

Please sign in to comment.