Index: gmap_blocks.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/gmap_blocks/gmap_blocks.admin.inc,v
retrieving revision 1.4
diff -u -p -r1.4 gmap_blocks.admin.inc
--- gmap_blocks.admin.inc	8 Sep 2009 19:39:26 -0000	1.4
+++ gmap_blocks.admin.inc	10 Sep 2009 21:33:21 -0000
@@ -394,7 +394,8 @@ function gmap_blocks_location_form($form
     '#type' => 'textfield',
     '#title' => t('Path to the icon'),
     '#default_value' => $edit['icon_path'],
-    '#description' => t('The path to the image you would like to use as an icon for this location.')
+    '#field_prefix' => url(NULL, array('absolute' => TRUE)),
+    '#description' => t('The path to the image you would like to use as an icon for this location.'),
   );
   $form['icon']['icon_upload'] = array(
     '#type' => 'file',
@@ -458,6 +459,13 @@ function gmap_blocks_location_form_valid
     else {
       $form_state['values']['latlng'] = serialize($result);
     }
+
+    // Validate the icon path.
+    if ($form_state['values']['use_icon'] == '1' && !empty($form_state['values']['icon_path'])) {
+      if (!file_exists($form_state['values']['icon_path'])) {
+        form_set_error('icon_path', t('The icon image can not be found. Check your entry or upload an icon first.'));
+      }
+    }
   }
 }
 
