]> git.lyx.org Git - lyx.git/blobdiff - src/insets/render_graphic.C
convert graphics for .tex export, fixes bug 1231
[lyx.git] / src / insets / render_graphic.C
index 44e8b7ef21d54682f9fef7c9e950a98191173875..31d4605b117778504a61b4afb6e48a546a2712fc 100644 (file)
@@ -39,7 +39,6 @@ using std::auto_ptr;
 
 
 RenderGraphic::RenderGraphic(InsetBase const * inset)
-       : checksum_(0)
 {
        loader_.connect(boost::bind(&LyX::updateInset,
                                    boost::cref(LyX::cref()), inset));
@@ -50,8 +49,7 @@ RenderGraphic::RenderGraphic(RenderGraphic const & other,
                             InsetBase const * inset)
        : RenderBase(other),
          loader_(other.loader_),
-         params_(other.params_),
-         checksum_(0)
+         params_(other.params_)
 {
        loader_.connect(boost::bind(&LyX::updateInset,
                                    boost::cref(LyX::cref()), inset));
@@ -75,16 +73,6 @@ void RenderGraphic::update(graphics::Params const & params)
 }
 
 
-bool RenderGraphic::hasFileChanged() const
-{
-       unsigned long const new_checksum = loader_.checksum();
-       bool const file_has_changed = checksum_ != new_checksum;
-       if (file_has_changed)
-               checksum_ = new_checksum;
-       return file_has_changed;
-}
-
-
 namespace {
 
 bool displayGraphic(graphics::Params const & params)
@@ -92,7 +80,7 @@ bool displayGraphic(graphics::Params const & params)
        return params.display != graphics::NoDisplay &&
                lyxrc.display_graphics != graphics::NoDisplay;
 }
-       
+
 
 string const statusMessage(graphics::Params const & params,
                           graphics::ImageStatus status)