]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetGraphics.cpp
Embedding: when an inset with an embedded file is copied to another buffer, the embed...
[features.git] / src / insets / InsetGraphics.cpp
index 39c5d8ad3af427f7d92e1879ffe2c55dd2740da1..3f61db4aaf894e54057ee5e491930d868c119efc 100644 (file)
@@ -154,6 +154,14 @@ InsetGraphics::~InsetGraphics()
 }
 
 
+void InsetGraphics::setBuffer(Buffer & buffer)
+{
+       if (buffer_)
+               params_.filename = params_.filename.copyTo(&buffer);
+       Inset::setBuffer(buffer);
+}
+
+
 void InsetGraphics::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        switch (cmd.action) {