]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.C
* Make the graphics files conform strictly to the Pimpl idiom by moving
[lyx.git] / src / insets / insetgraphics.C
index 36f80bfa73786bc7e6b7ddae2520e457dd8ad302..7cad1907e90471277e6568820d4e62212571b7d7 100644 (file)
@@ -172,8 +172,7 @@ private:
 InsetGraphics::Cache::Cache(InsetGraphics & p)
        : old_ascent(0), parent_(p)
 {
-       loader.statusChanged.connect(
-               boost::bind(&InsetGraphics::statusChanged, &parent_));
+       loader.connect(boost::bind(&InsetGraphics::statusChanged, &parent_));
 }
 
 
@@ -679,10 +678,11 @@ string const InsetGraphics::prepareFile(Buffer const *buf) const
        // "nice" means that the buffer is exported to LaTeX format but not
        //        run through the LaTeX compiler.
        // if (nice)
-       //     No conversion of the graphics file is needed.
-       //     Return the original filename without any extension.
+       //      no conversion needed!
+       //      Return the original filename as is, because we do not know
+       //      what the user decide.
        if (buf->niceFile)
-               return RemoveExtension(orig_file);
+               return orig_file;
 
        // We're going to be running the exported buffer through the LaTeX
        // compiler, so must ensure that LaTeX can cope with the graphics