Author: sanel.z
Date: 2007-05-31 09:38:07 -0400 (Thu, 31 May 2007)
New Revision: 5863
Log:
STR #1677 fixed thanks to ddurham


Modified:
   trunk/src/Menu.cxx
   trunk/src/gifImage.cxx

Modified: trunk/src/Menu.cxx
===================================================================
--- trunk/src/Menu.cxx  2007-05-31 13:12:01 UTC (rev 5862)
+++ trunk/src/Menu.cxx  2007-05-31 13:38:07 UTC (rev 5863)
@@ -454,7 +454,6 @@
   more than one shortcut for an action may be given by putting
   multiple copies of the item in, where only the first is visible.
 */
-#include <stdio.h>
 int Menu::handle_shortcut() {
   //if (event_key_repeated()) return 0; // ignore repeating keys
   int children = this->children();

Modified: trunk/src/gifImage.cxx
===================================================================
--- trunk/src/gifImage.cxx      2007-05-31 13:12:01 UTC (rev 5862)
+++ trunk/src/gifImage.cxx      2007-05-31 13:38:07 UTC (rev 5863)
@@ -71,6 +71,8 @@
     dat += 6;
   } else { // set up to read from file, quit silently on any errors:
     GifFile=fopen(get_filename(), "rb");
+    if (!GifFile)
+      return false;
     char b[6];
     if (!GifFile || fread(b,1,6,GifFile) < 6 ||
        b[0]!='G' || b[1]!='I' || b[2] != 'F') {

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to