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