From 29122a95f5a88f56e11d499863a8bce8a35ba855 Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Sat, 15 Jun 2013 16:48:44 -0400 Subject: Fix crash for external symbol documents, should never select these items. (bzr r12375) --- src/ui/dialog/symbols.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ui/dialog/symbols.cpp b/src/ui/dialog/symbols.cpp index cac01c657..5649a7ee6 100644 --- a/src/ui/dialog/symbols.cpp +++ b/src/ui/dialog/symbols.cpp @@ -409,8 +409,10 @@ void SymbolsDialog::iconChanged() { SPObject* symbol = symbolDocument->getObjectById(symbol_id); if( symbol ) { - // Select the symbol on the canvas so it can be manipulated - currentDesktop->selection->set( symbol, false ); + if( symbolDocument == currentDocument ) { + // Select the symbol on the canvas so it can be manipulated + currentDesktop->selection->set( symbol, false ); + } // Find style for use in // First look for default style stored in -- cgit v1.2.3