aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-09-06 23:02:42 +0200
committerThomas White <taw@bitwiz.org.uk>2013-09-06 23:05:56 +0200
commitf916507c9c1c38bd7920005422685fef227664ba (patch)
treec39258798e46eeb7cb7ca3b7cc30a8e1019b7260 /src/mainwindow.c
parenta4fc5fe56ad4861c9345f003bdd1d7822f756b08 (diff)
New frames always go at the top level
We don't have a properly thought-out inheritance model just yet
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 8783acc..1b5a8d6 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -1434,11 +1434,7 @@ static struct frame *create_frame(struct presentation *p, double x, double y,
struct frame *parent;
struct frame *fr;
- if ( p->n_selection != 1 ) {
- parent = p->cur_edit_slide->top;
- } else {
- parent = p->selection[0];
- }
+ parent = p->cur_edit_slide->top;
if ( w < 0.0 ) {
x += w;