]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.h
updates to minipage inset
[lyx.git] / src / insets / insetgraphics.h
index a481b83f798171b768a5c6b4bc820e1872ea8bda..5cb82a91deda5c69aa1cdf7a4c9bd69f8b1f5512 100644 (file)
@@ -20,6 +20,7 @@
 #include "insets/lyxinset.h"
 #include "insets/insetgraphicsParams.h"
 #include "graphics/GraphicsCacheItem.h"
+#include <boost/smart_ptr.hpp>
 
 #include "LaTeXFeatures.h"
 
@@ -113,7 +114,7 @@ private:
        string const prepareFile(Buffer const * buf) const;
 
        /// The graphics cache handle.
-       mutable GraphicsCacheItem * cacheHandle;
+       mutable boost::shared_ptr<GraphicsCacheItem> cacheHandle;
 
        /// is the pixmap initialized?
        mutable bool imageLoaded;