Index: /branches/release-1_0/platform/generic/shooting.c
===================================================================
--- /branches/release-1_0/platform/generic/shooting.c	(revision 1811)
+++ /branches/release-1_0/platform/generic/shooting.c	(revision 1812)
@@ -1075,5 +1075,6 @@
                 s=shooting_get_near_limit_f(v,shooting_get_min_real_aperture(),get_focal_length(lens_get_zoom_point()));
             }
-            if (!conf.dof_use_exif_subj_dist) s+=shooting_get_lens_to_focal_plane_width();
+            if (!conf.dof_use_exif_subj_dist && (s != INFINITY_DIST))
+                s+=shooting_get_lens_to_focal_plane_width();
             lens_set_focus_pos(s); 
         }
@@ -1285,5 +1286,8 @@
 int shooting_get_subject_distance_override_value()
 {
-  return (conf.subj_dist_override_value < shooting_get_lens_to_focal_plane_width()?0:(conf.subj_dist_override_value - shooting_get_lens_to_focal_plane_width()));
+    if (conf.subj_dist_override_value != INFINITY_DIST)
+        return (conf.subj_dist_override_value < shooting_get_lens_to_focal_plane_width()?0:(conf.subj_dist_override_value - shooting_get_lens_to_focal_plane_width()));
+    else
+        return INFINITY_DIST;
 }
 
