RenderGraphic::RenderGraphic(Inset const * inset)
{
- loader_.connect(boost::bind(&LyX::updateInset,
+ loader_connection_ = loader_.connect(boost::bind(&LyX::updateInset,
boost::cref(LyX::cref()), inset));
}
loader_(other.loader_),
params_(other.params_)
{
- loader_.connect(boost::bind(&LyX::updateInset,
+ loader_connection_ = loader_.connect(boost::bind(&LyX::updateInset,
boost::cref(LyX::cref()), inset));
}
#include "graphics/GraphicsLoader.h"
#include "graphics/GraphicsParams.h"
+#include <boost/signal.hpp>
namespace lyx {
RenderGraphic(RenderGraphic const &, Inset const *);
std::auto_ptr<RenderBase> clone(Inset const *) const;
+ ~RenderGraphic() { loader_connection_.disconnect(); }
+
/// compute the size of the object returned in dim
bool metrics(MetricsInfo & mi, Dimension & dim) const;
/// draw inset
/// The stored data.
graphics::Loader loader_;
graphics::Params params_;
+
+ //
+ boost::signals::connection loader_connection_;
};