[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (1138b9419b56c6c4a5861dce79ed058ee4e513ba)



The branch, master has been updated
       via  1138b9419b56c6c4a5861dce79ed058ee4e513ba (commit)
      from  bcc3073b4df5452e027f56b820107f99912b1106 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/hid/gtk/gui-pinout-preview.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit 1138b9419b56c6c4a5861dce79ed058ee4e513ba
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>

    avoid trying to use the background graphics context before it is created.
    
    On startup, some code was trying to access the background graphics context
    before it was created.  Check to make sure the context has been created
    before we do anything with it.

:100644 100644 212d37a... b3c0ebc... M	src/hid/gtk/gui-pinout-preview.c

=========
 Changes
=========

commit 1138b9419b56c6c4a5861dce79ed058ee4e513ba
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>

    avoid trying to use the background graphics context before it is created.
    
    On startup, some code was trying to access the background graphics context
    before it was created.  Check to make sure the context has been created
    before we do anything with it.

diff --git a/src/hid/gtk/gui-pinout-preview.c b/src/hid/gtk/gui-pinout-preview.c
index 212d37a..b3c0ebc 100644
--- a/src/hid/gtk/gui-pinout-preview.c
+++ b/src/hid/gtk/gui-pinout-preview.c
@@ -163,6 +163,11 @@ ghid_pinout_preview_expose (GtkWidget * widget, GdkEventExpose * event)
   int save_view_width, save_view_height;
   double xz, yz;
 
+  /* make sure that the graphic contexts have been set up before we try to do anything here */
+  if (gport->bg_gc == NULL) {
+    return FALSE;
+  }
+
   save_zoom = gport->zoom;
   save_width = gport->width;
   save_height = gport->height;




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs