summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2013-06-15 20:48:44 +0000
committerMartin Owens <doctormo@gmail.com>2013-06-15 20:48:44 +0000
commit29122a95f5a88f56e11d499863a8bce8a35ba855 (patch)
treec4df5ff071e1d8b633a352518004e01280ef73d4 /src
parentBig change in symbols ui and selection chemistry. (diff)
downloadinkscape-29122a95f5a88f56e11d499863a8bce8a35ba855.tar.gz
inkscape-29122a95f5a88f56e11d499863a8bce8a35ba855.zip
Fix crash for external symbol documents, should never select these items.
(bzr r12375)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/symbols.cpp6
1 files changed, 4 insertions, 2 deletions
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 <use>
// First look for default style stored in <symbol>