]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetPreview.cpp
Comply with rule-of-three
[features.git] / src / insets / InsetPreview.cpp
index b8fd0aea8c3dda430b57567aae95bc8bd45fb51b..d327fe5b52bd17ce41b6ba32285d84270d0f58b1 100644 (file)
@@ -54,6 +54,18 @@ InsetPreview::InsetPreview(InsetPreview const & other)
 }
 
 
+InsetPreview & InsetPreview::operator=(InsetPreview const & other)
+{
+       if (&other == this)
+               return *this;
+
+       InsetText::operator=(other);
+       preview_.reset(new RenderPreview(*other.preview_, this));
+
+       return *this;
+}
+
+
 void InsetPreview::write(ostream & os) const
 {
        os << "Preview" << "\n";