]> git.lyx.org Git - lyx.git/blobdiff - src/insets/RenderGraphic.cpp
Fix text frame drawing.
[lyx.git] / src / insets / RenderGraphic.cpp
index d305024192c0788e80bab2821022f705b03973a8..ec0789957b1737e8d3e83bca262ae7ca75438380 100644 (file)
@@ -35,7 +35,6 @@ namespace lyx {
 using support::onlyFilename;
 
 using std::string;
-using std::auto_ptr;
 
 
 RenderGraphic::RenderGraphic(Inset const * inset)
@@ -56,9 +55,9 @@ RenderGraphic::RenderGraphic(RenderGraphic const & other,
 }
 
 
-auto_ptr<RenderBase> RenderGraphic::clone(Inset const * inset) const
+RenderBase * RenderGraphic::clone(Inset const * inset) const
 {
-       return auto_ptr<RenderBase>(new RenderGraphic(*this, inset));
+       return new RenderGraphic(*this, inset);
 }
 
 
@@ -157,7 +156,7 @@ bool RenderGraphic::metrics(MetricsInfo & mi, Dimension & dim) const
                msgFont.setFamily(Font::SANS_FAMILY);
 
                // FIXME UNICODE
-               docstring const justname = 
+               docstring const justname =
                        from_utf8(onlyFilename(params_.filename.absFilename()));
                if (!justname.empty()) {
                        msgFont.setSize(Font::SIZE_FOOTNOTE);