Diff of /src/hugin1/hugin/CPImageCtrl.cpp [d2b853] .. [3f9ab6] Maximize Restore

  Switch to side-by-side view

--- a/src/hugin1/hugin/CPImageCtrl.cpp
+++ b/src/hugin1/hugin/CPImageCtrl.cpp
@@ -30,6 +30,7 @@
 
 // standard hugin include
 #include "panoinc.h"
+#include "base_wx/platform.h"
 
 #include <vigra/inspectimage.hxx>
 #include <vigra/transformimage.hxx>
@@ -643,7 +644,8 @@
 {
     DEBUG_TRACE("setting Image " << file);
     imageFilename = file;
-    if (imageFilename != "") {
+    wxString fn(imageFilename.c_str(),HUGIN_CONV_FILENAME);
+    if (wxFileName::FileExists(fn)) {
         m_img = ImageCache::getInstance().getImage(imageFilename);
         editState = NO_SELECTION;
         m_imgRotation = imgRot;