Blame SOURCES/Xaw3d-1.6.1-fontset.patch

94405b
diff -up libXaw3d-1.6.1/src/AsciiSink.c.fontset libXaw3d-1.6.1/src/AsciiSink.c
94405b
--- libXaw3d-1.6.1/src/AsciiSink.c.fontset	2012-02-01 12:24:00.000000000 -0700
94405b
+++ libXaw3d-1.6.1/src/AsciiSink.c	2012-02-25 14:52:46.802779081 -0700
94405b
@@ -513,6 +513,8 @@ Initialize(Widget request, Widget new, A
94405b
 {
94405b
     AsciiSinkObject sink = (AsciiSinkObject) new;
94405b
 
94405b
+    if (!sink->ascii_sink.font) XtError("Aborting: no font found\n");
94405b
+
94405b
     GetGC(sink);
94405b
 
94405b
     sink->ascii_sink.insertCursorOn= CreateInsertCursor(XtScreenOfObject(new));
94405b
diff -up libXaw3d-1.6.1/src/Command.c.fontset libXaw3d-1.6.1/src/Command.c
94405b
--- libXaw3d-1.6.1/src/Command.c.fontset	2011-09-19 15:42:36.000000000 -0600
94405b
+++ libXaw3d-1.6.1/src/Command.c	2012-02-25 14:51:26.075372823 -0700
94405b
@@ -218,6 +218,8 @@ Initialize(Widget request, Widget new, A
94405b
   CommandWidget cbw = (CommandWidget) new;
94405b
   int shape_event_base, shape_error_base;
94405b
 
94405b
+  if (!cbw->label.font) XtError("Aborting: no font found\n");
94405b
+
94405b
   if (cbw->command.shape_style != XawShapeRectangle
94405b
       && !XShapeQueryExtension(XtDisplay(new), &shape_event_base,
94405b
 			       &shape_error_base))
94405b
diff -up libXaw3d-1.6.1/src/List.c.fontset libXaw3d-1.6.1/src/List.c
94405b
--- libXaw3d-1.6.1/src/List.c.fontset	2011-10-09 12:01:20.000000000 -0600
94405b
+++ libXaw3d-1.6.1/src/List.c	2012-02-25 14:53:16.327465260 -0700
94405b
@@ -362,6 +362,8 @@ Initialize(Widget junk, Widget new, ArgL
94405b
 {
94405b
     ListWidget lw = (ListWidget) new;
94405b
 
94405b
+    if (!lw->list.font) XtError("Aborting: no font found\n");
94405b
+
94405b
 /*
94405b
  * Initialize all private resources.
94405b
  */
94405b
diff -up libXaw3d-1.6.1/src/SmeBSB.c.fontset libXaw3d-1.6.1/src/SmeBSB.c
94405b
--- libXaw3d-1.6.1/src/SmeBSB.c.fontset	2011-09-19 15:42:36.000000000 -0600
94405b
+++ libXaw3d-1.6.1/src/SmeBSB.c	2012-02-25 14:50:19.056358107 -0700
94405b
@@ -207,6 +207,8 @@ Initialize(Widget request, Widget new, A
94405b
     else
94405b
 	entry->sme_bsb.label = XtNewString( entry->sme_bsb.label );
94405b
 
94405b
+    if (!entry->sme_bsb.font) XtError("Aborting: no font found\n");
94405b
+
94405b
     CreateGCs(new);
94405b
 
94405b
     GetBitmapInfo(new, TRUE);	/* Left Bitmap Info */
94405b
diff -up libXaw3d-1.6.1/src/Tip.c.fontset libXaw3d-1.6.1/src/Tip.c
94405b
--- libXaw3d-1.6.1/src/Tip.c.fontset	2012-02-15 12:10:38.000000000 -0700
94405b
+++ libXaw3d-1.6.1/src/Tip.c	2012-02-25 14:50:19.058358017 -0700
94405b
@@ -248,6 +248,8 @@ XawTipInitialize(Widget req, Widget w, A
94405b
     TipWidget tip = (TipWidget)w;
94405b
     XGCValues values;
94405b
 
94405b
+    if (!tip->tip.font) XtError("Aborting: no font found\n");
94405b
+
94405b
     tip->tip.timer = 0;
94405b
 
94405b
     values.foreground = tip->tip.foreground;