Index: src/src/Plugins/Ghostscript/gs_utilities.cpp
===================================================================
--- src/src/Plugins/Ghostscript/gs_utilities.cpp	(revision 5794)
+++ src/src/Plugins/Ghostscript/gs_utilities.cpp	(working copy)
@@ -42,7 +42,7 @@
 bool
 gs_image_size_sub (string buf, int& w_pt, int& h_pt) {
   int pos= search_forwards ("\n%%BoundingBox: ", buf);
-  if (pos < 0) search_forwards ("%%BoundingBox: ", buf);
+  if (pos < 0) pos = search_forwards ("%%BoundingBox: ", buf);
   if (pos < 0) return false;
   if (buf[pos] == '\n') pos++;
   bool ok= read (buf, pos, "%%BoundingBox: ");
@@ -80,7 +80,7 @@
   if (!err && gs_image_size_sub (buf, w_pt, h_pt)) return;
   cerr << "TeXmacs Cannot read image file '" << image << "'"
        << " in gs_image_size" << LF;
-  w_pt= 0; h_pt= 0;
+  w_pt= 0; h_pt= 1;
 }
 
 void ps_bounding_box (url image, int& x1, int& y1, int& x2, int& y2);
