]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/applet/prepinclude.cpp
formatting changes
[wxWidgets.git] / contrib / src / applet / prepinclude.cpp
index 74d85e5962818d3dcb73be2defa41e417c66b035..b9678148a7611833667511713f33cc7c7e1f0e7b 100644 (file)
@@ -92,17 +92,17 @@ wxString wxIncludePrep::Process(
                // remove the #include tag
         output.Remove(i, n+21+3);
 
-        wxFSFile * file = fs->OpenFile(fname);
+        wxFSFile * file = fs->OpenFile(DOC_ROOT + fname);
                        
         if (!file) {
 #ifdef CHECKED         
-                       wxMessageBox(wxString("wxHTML #include error: File not Found ") + fname + wxString("."),"Error",wxICON_ERROR);
+                       wxMessageBox(wxString("wxHTML #include error: File not Found ") + DOC_ROOT + fname + wxString("."),"Error",wxICON_ERROR);
 #endif
+            delete file;
             continue;
                        }                       
                                                        
                wxString tmp;
-
        
         do {
                        char tmp2[257];