#include "support/FileName.h"
-#include <boost/bind.hpp>
+#include "support/bind.h"
using namespace std;
using namespace lyx::support;
}
+support::FileName const & PreviewImage::filename() const
+{
+ return pimpl_->iloader_.filename();
+}
+
+
Dimension PreviewImage::dim() const
{
Dimension dim;
: parent_(p), ploader_(l), iloader_(bf),
snippet_(s), ascent_frac_(af)
{
- iloader_.connect(boost::bind(&Impl::statusChanged, this));
+ iloader_.connect(bind(&Impl::statusChanged, this));
}
case ErrorUnknown:
//iloader_.filename().removeFile();
ploader_.remove(snippet_);
- break;
+ // FIXME: We need to return here, because PreviewLoader::remove
+ // removes the preview image from the cache, which deletes this
+ // object, so we should not try to do anything here.
+ return;
case Ready:
iloader_.filename().removeFile();