diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-06-15 20:48:44 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-06-15 20:48:44 +0000 |
| commit | 29122a95f5a88f56e11d499863a8bce8a35ba855 (patch) | |
| tree | c4df5ff071e1d8b633a352518004e01280ef73d4 /src | |
| parent | Big change in symbols ui and selection chemistry. (diff) | |
| download | inkscape-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.cpp | 6 |
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> |
