]> git.tokkee.org Git - inkscape.git/commitdiff

Code

Check to make sure canvas provided to forced redraw functions is not null.
authorjohncoswell <johncoswell@users.sourceforge.net>
Tue, 3 Oct 2006 01:10:57 +0000 (01:10 +0000)
committerjohncoswell <johncoswell@users.sourceforge.net>
Tue, 3 Oct 2006 01:10:57 +0000 (01:10 +0000)
src/display/sp-canvas.cpp

index 1f89e8bae5e51469ff25a0f61554325492ad7b8f..1fe577d8ea8d8748f1f0aa67aa3ea0e6e68c5cd4 100644 (file)
@@ -1743,6 +1743,8 @@ sp_canvas_paint_rect (SPCanvas *canvas, int xx0, int yy0, int xx1, int yy1)
  */
 void
 sp_canvas_force_full_redraw_after_interruptions(SPCanvas *canvas, unsigned int count) {
+  g_return_if_fail(canvas != NULL);
+  
   canvas->forced_redraw_limit = count;
   canvas->forced_redraw_count = 0;
 }
@@ -1752,6 +1754,8 @@ sp_canvas_force_full_redraw_after_interruptions(SPCanvas *canvas, unsigned int c
  */
 void
 sp_canvas_end_forced_full_redraws(SPCanvas *canvas) {
+  g_return_if_fail(canvas != NULL);
+
   canvas->forced_redraw_limit = 0;
 }