]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.C
Clean up InsetGraphics::Cache and rename as GraphicsInset.
[lyx.git] / src / insets / insetref.C
index f2d2c0dde203ee3258b7ca2ce56ebf6f53ac59a4..eab61a905d3541178157cb7676fb33489886e4b9 100644 (file)
@@ -28,9 +28,10 @@ InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf)
 {}
 
 
-// InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf, bool)
-//     : InsetCommand(p, false), isLatex(buf.isLatex())
-// {}
+InsetRef::InsetRef(InsetRef const & ir)
+       : InsetCommand(ir), isLatex(ir.isLatex)
+{
+}
 
 
 InsetRef::~InsetRef()
@@ -52,7 +53,7 @@ dispatch_result InsetRef::localDispatch(FuncRequest const & cmd)
                return DISPATCHED;
 
        default:
-               return UNDISPATCHED;
+               return InsetCommand::localDispatch(cmd);
        }
 }