diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-06-16 13:48:12 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-06-16 13:48:12 +0000 |
| commit | 5cd0fcd53cf3734cd5e0a52454ce0443fa6754ad (patch) | |
| tree | 1b474951a92bf33ada9aa528d43d9b0423a868ba /src/desktop.cpp | |
| parent | Fix for 1184408 : Additional zoom levels in zoom context menu (diff) | |
| download | inkscape-5cd0fcd53cf3734cd5e0a52454ce0443fa6754ad.tar.gz inkscape-5cd0fcd53cf3734cd5e0a52454ce0443fa6754ad.zip | |
Fix layer selection so defs don't change layers, updated symbol text.
(bzr r12379)
Diffstat (limited to 'src/desktop.cpp')
| -rw-r--r-- | src/desktop.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp index 0bf442b7a..17548ee56 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -70,6 +70,7 @@ #include "sp-item-group.h" #include "sp-namedview.h" #include "sp-root.h" +#include "sp-defs.h" #include "widgets/desktop-widget.h" #include "xml/repr.h" #include "helper/action.h" //sp_action_perform @@ -595,6 +596,9 @@ SPObject *SPDesktop::layerForObject(SPObject *object) { SPObject *root=currentRoot(); object = object->parent; while ( object && object != root && !isLayer(object) ) { + // Objects in defs have no layer and are NOT in the root layer + if(SP_IS_DEFS(object)) + return NULL; object = object->parent; } return object; |
