X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gdk%2Fgdkdraw.c;h=8ae417e4aa6b7fe95f92ff052aa5f515de58eb31;hb=95b3f3e46016e4993e60e8c139bfd03a106201ba;hp=2d61d5dc4aa64ad95c3d3c2a3dce24f869308cbc;hpb=207757e70d8b2d9aa8335d968fd7ac79796264ab;p=~andy%2Fgtk diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c index 2d61d5dc4..8ae417e4a 100644 --- a/gdk/gdkdraw.c +++ b/gdk/gdkdraw.c @@ -16,6 +16,14 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ + +/* + * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + #include #include #include "gdk.h" @@ -493,12 +501,14 @@ gdk_draw_lines (GdkDrawable *drawable, g_return_if_fail (gc != NULL); drawable_private = (GdkWindowPrivate*) drawable; + if (drawable_private->destroyed) + return; gc_private = (GdkGCPrivate*) gc; XDrawLines (drawable_private->xdisplay, - drawable_private->xwindow, - gc_private->xgc, - (XPoint *) points, - npoints, - CoordModeOrigin); + drawable_private->xwindow, + gc_private->xgc, + (XPoint *) points, + npoints, + CoordModeOrigin); }