aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index d237895..5e10dbf 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -232,6 +232,16 @@ static int recursive_unpack(struct frame *fr, const char *sc, StyleSheet *ss)
sfr = add_subframe(fr);
parse_options(sfr, b->options, ss);
+ if ( sfr->lop.w < 0.0 ) {
+ sfr->lop.x += sfr->lop.w;
+ sfr->lop.w = -sfr->lop.w;
+ }
+
+ if ( sfr->lop.h < 0.0 ) {
+ sfr->lop.y += sfr->lop.h;
+ sfr->lop.h = -sfr->lop.h;
+ }
+
sfr->sc = remove_blocks(b->contents, "f");
sfr->sc_len = strlen(sfr->sc)+1;
if ( recursive_unpack(sfr, b->contents, ss) ) {