]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/frame-draw.c
Imported upstream version 20090526
[ion3.git] / ioncore / frame-draw.c
index 8591f2a254b3f84ca03fe99d4d5b6d76c51ad5a7..7e404c0c04bf032e3117f4b53268e5863c057be7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * ion/ioncore/frame-draw.c
  *
- * Copyright (c) Tuomo Valkonen 1999-2007
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
  * See the included file LICENSE for details.
  */
@@ -219,7 +219,8 @@ void frame_set_shape(WFrame *frame)
 
 void frame_clear_shape(WFrame *frame)
 {
-    grbrush_set_window_shape(frame->brush, TRUE, 0, NULL);
+    if(frame->brush!=NULL)
+        grbrush_set_window_shape(frame->brush, TRUE, 0, NULL);
 }