summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3237cac)
raw | patch | inline | side by side (parent: 3237cac)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 14 May 2006 22:37:39 +0000 (22:37 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 14 May 2006 22:37:39 +0000 (22:37 +0000) |
src/layer-manager.cpp | patch | blob | history |
diff --git a/src/layer-manager.cpp b/src/layer-manager.cpp
index 15bd57fd9a189be0ef8cdea74c9225856e247eea..2e09ff472403f2c45cfad6d8a97ba2871555d12f 100644 (file)
--- a/src/layer-manager.cpp
+++ b/src/layer-manager.cpp
#include "layer-manager.h"
#include "ui/view/view.h"
#include "sp-object.h"
+#include "xml/node.h"
namespace Inkscape {
SPObject *root=_desktop->currentRoot();
if ( root ) {
_addOne(root);
- }
- for ( GSList const *iter=layers ; iter ; iter = iter->next ) {
- SPObject *layer=static_cast<SPObject *>(iter->data);
- for ( SPObject* curr = layer; curr && (curr != root) ; curr = SP_OBJECT_PARENT(curr) ) {
- if ( (curr != root) && root->isAncestorOf(curr) && !includes(curr) ) {
- // Filter out objects in the middle of being deleted
- SPObject const *higher = curr;
- while ( higher && (SP_OBJECT_PARENT(higher) != root) ) {
- higher = SP_OBJECT_PARENT(higher);
- }
- Inkscape::XML::Node* node = higher ? SP_OBJECT_REPR(higher) : 0;
- if ( node && node->parent() ) {
- _addOne(curr);
+ for ( GSList const *iter=layers ; iter ; iter = iter->next ) {
+ SPObject *layer=static_cast<SPObject *>(iter->data);
+
+ for ( SPObject* curr = layer; curr && (curr != root) ; curr = SP_OBJECT_PARENT(curr) ) {
+ if ( (curr != root) && root->isAncestorOf(curr) && !includes(curr) ) {
+ // Filter out objects in the middle of being deleted
+ SPObject const *higher = curr;
+ while ( higher && (SP_OBJECT_PARENT(higher) != root) ) {
+ higher = SP_OBJECT_PARENT(higher);
+ }
+ Inkscape::XML::Node* node = higher ? SP_OBJECT_REPR(higher) : 0;
+ if ( node && node->parent() ) {
+ _addOne(curr);
+ }
}
}
}