]> Creatis software - creaContours.git/commitdiff
*** empty log message ***
authorJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Thu, 16 Apr 2009 15:25:21 +0000 (15:25 +0000)
committerJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Thu, 16 Apr 2009 15:25:21 +0000 (15:25 +0000)
bbtk/src/bbCreaContournDimensions.cxx

index 6708db5ec1c9f4ef009aa50368eee0eeca6a5467..d881443dbe05a74bfc806cbf0dcca7e0172479e7 100644 (file)
@@ -52,14 +52,16 @@ void nDimensions::CreateWidget(wxWindow* parent)
        //new wxContourMainFrame( frame1, wxID_ANY, _T(""), wxPoint(50,50), wxSize(800, 600),selectedimages ); 
        //frame1->CreateStatusBar();
        //bbSetOutputWidget( frame1 ); 
-
+std::string path="";
+#ifdef WIN32
        char currentPath[_MAX_PATH];
        HMODULE hand = GetModuleHandle("bbcreaContours");
        GetModuleFileName(hand, currentPath, _MAX_PATH);
 
-       std::string path = currentPath;
+       path = currentPath;
 
        path = path.substr(0,path.find_last_of("\\"));
+#endif
 
        wxPanel* panel = wxContourMainFrame::getInstance(parent, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages,wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER,path );
        bbSetOutputWidget( panel );