Commit 82cf451c authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud
Browse files

Fix not complete to avoid reparenting when navigate through blocks.

parent ea7aa3e7
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* Copyright (C) 2008-2011 - Julien Wintz, Inria. * Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Fri Feb 3 14:01:41 2012 (+0100) * Created: Fri Feb 3 14:01:41 2012 (+0100)
* Version: $Id$ * Version: $Id$
* Last-Updated: Wed Mar 28 15:50:09 2012 (+0200) * Last-Updated: Wed Mar 28 16:05:31 2012 (+0200)
* By: tkloczko * By: tkloczko
* Update #: 659 * Update #: 661
*/ */
/* Commentary: /* Commentary:
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "dtkComposerSceneEdge.h" #include "dtkComposerSceneEdge.h"
#include "dtkComposerSceneNode.h" #include "dtkComposerSceneNode.h"
#include "dtkComposerSceneNodeComposite.h" #include "dtkComposerSceneNodeComposite.h"
#include "dtkComposerSceneNodeControl.h"
#include "dtkComposerSceneNote.h" #include "dtkComposerSceneNote.h"
#include "dtkComposerScenePort.h" #include "dtkComposerScenePort.h"
...@@ -163,6 +164,12 @@ void dtkComposerSceneNodeComposite::enter(void) ...@@ -163,6 +164,12 @@ void dtkComposerSceneNodeComposite::enter(void)
{ {
d->entered = true; d->entered = true;
if (this->embedded()) {
foreach(dtkComposerSceneNodeComposite *block, dynamic_cast<dtkComposerSceneNodeControl *>(this->parent())->blocks())
if (block != this)
block->stackBefore(this);
}
this->reveal(); this->reveal();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment