diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-09-03 22:37:57 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-09-03 22:37:57 +0200 |
commit | ca730b236f848f22a138435c4a645c15e0c5e6ea (patch) | |
tree | 5a84e8fe31941f0760152a4b2668b9424c46e914 /src/mainwindow.c | |
parent | 2985aa57d9b23ea2e66819690364ac201ecf9cc5 (diff) |
Fix negative-sized frames
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 714b3ac..0830b02 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1440,6 +1440,16 @@ static struct frame *create_frame(struct presentation *p, double x, double y, parent = p->selection[0]; } + if ( w < 0.0 ) { + x += w; + w = -w; + } + + if ( h < 0.0 ) { + y += h; + h = -h; + } + fr = add_subframe(parent); fr->sc = NULL; fr->style = default_style(p->ss); |