]> git.decadent.org.uk Git - ion3.git/blobdiff - mod_statusbar/statusbar.c
Imported Upstream version 20090110
[ion3.git] / mod_statusbar / statusbar.c
index c43d2b0ef71594d6d5ccead046e28d88da9d6764..06fa6973bc3a889df6f1c2c4ff61e0c62c7cf67c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * ion/mod_statusbar/statusbar.c
  *
- * Copyright (c) Tuomo Valkonen 1999-2007
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
  * See the included file LICENSE for details.
  */
@@ -635,7 +635,8 @@ bool statusbar_fitrep(WStatusBar *sb, WWindow *par, const WFitParams *fp)
     bool wchg=(REGION_GEOM(sb).w!=fp->g.w);
     bool hchg=(REGION_GEOM(sb).h!=fp->g.h);
     
-    window_do_fitrep(&(sb->wwin), par, &(fp->g));
+    if(!window_fitrep(&(sb->wwin), par, fp))
+        return FALSE;
     
     if(wchg || hchg){
         statusbar_calculate_xs(sb);