Update of /cvsroot/numexp/gnumexp/src/nxplot
In directory usw-pr-cvs1:/tmp/cvs-serv18982
Modified Files:
nxpcanvasobject.c
Log Message:
Remove warning in nxp_canvas_object_queue_draw() when object has no canvas yet.
Index: nxpcanvasobject.c
===================================================================
RCS file: /cvsroot/numexp/gnumexp/src/nxplot/nxpcanvasobject.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -U4 -r1.12 -r1.13
--- nxpcanvasobject.c 25 Mar 2002 23:13:30 -0000 1.12
+++ nxpcanvasobject.c 14 Apr 2002 17:29:32 -0000 1.13
@@ -351,9 +351,9 @@
void nxp_canvas_object_queue_draw(NxpCanvasObject *self)
{
g_return_if_fail(self);
g_return_if_fail(NXP_IS_CANVAS_OBJECT(self));
- g_return_if_fail(self->canvas);
+ if (!self->canvas) return;
nxp_canvas_redraw_area(self->canvas, &self->bbox);
}
|