X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Ftools%2Fodthelpbrowser%2Fmain.cpp;h=3da4d517d4063fc9102e4ba721ab8ff1ea6b2a76;hb=e3d676a652686a4376e46e4a35fdb107b4f32d0d;hp=2d8aa4d25af9a6bae181600c2f74ab864f872314;hpb=ee9b71949005734012f18251774807c38b989ae2;p=xestiaab%2F.git diff --git a/source/tools/odthelpbrowser/main.cpp b/source/tools/odthelpbrowser/main.cpp index 2d8aa4d..3da4d51 100644 --- a/source/tools/odthelpbrowser/main.cpp +++ b/source/tools/odthelpbrowser/main.cpp @@ -54,9 +54,10 @@ bool ODTHelpBrowser::OnInit() std::string fileToLoad = std::string(documentFilename.mb_str()); - if (!odtDocument.LoadDocument(fileToLoad); + if (!odtDocument.LoadDocument(fileToLoad)) { std::cout << "Unable to open file " << documentFilename.mb_str() << std::endl; + return false; } // Setup the form and load in the document data.