]> git.lyx.org Git - features.git/blobdiff - src/graphics/XPM_Renderer.C
Angus's insetref-patch and a small fix.
[features.git] / src / graphics / XPM_Renderer.C
index 1f3f9729a81473dbcfec369c000b47b693411864..c51bdca672227a62f79730be100afc94a9da50cd 100644 (file)
@@ -24,6 +24,9 @@
 #include "support/LAssert.h"
 #include "debug.h"
 
+using std::endl;
+using std::ios;
+
 XPM_Renderer::XPM_Renderer()
        : Renderer()
 {}
@@ -69,7 +72,7 @@ bool XPM_Renderer::renderImage()
 
 bool XPM_Renderer::isImageFormatOK(string const & filename) const
 {
-       std::ifstream is(filename.c_str(), ios::in | ios::nocreate);
+       std::ifstream is(filename.c_str(), ios::in);
 
        // The signature of the file without the spaces.
        static const char str[] = "/*XPM*/";