aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/gtk/gtkslideview.c
diff options
context:
space:
mode:
Diffstat (limited to 'libstorycode/gtk/gtkslideview.c')
-rw-r--r--libstorycode/gtk/gtkslideview.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libstorycode/gtk/gtkslideview.c b/libstorycode/gtk/gtkslideview.c
index 8251d34..91bc1c7 100644
--- a/libstorycode/gtk/gtkslideview.c
+++ b/libstorycode/gtk/gtkslideview.c
@@ -832,6 +832,16 @@ static SlideItem *create_frame(GtkSlideView *e, double cx, double cy,
text = strdup("");
if ( text == NULL ) return NULL;
+ if ( w < 0.0 ) {
+ cx += w;
+ w = -w;
+ }
+
+ if ( h < 0.0 ) {
+ cy += h;
+ h = -h;
+ }
+
geom.x.len = cx; geom.x.unit = LENGTH_UNIT;
geom.y.len = cy; geom.y.unit = LENGTH_UNIT;
geom.w.len = w; geom.w.unit = LENGTH_UNIT;