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_));
}
if (!cache_->loader.image() || cache_->loader.status() != grfx::Ready)
return false;
- return cache_->loader.image()->getPixmap() != 0;
+ return cache_->loader.image()->isDrawable();
}
// "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