]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetMarginal.cpp
Remove color dependency of framed note, fix bug 3598
[lyx.git] / src / insets / InsetMarginal.cpp
index 83a42f287a67939b16ca305af5ca9bf14b98b70e..52a4d83defddefe25fb260ecd90418eef07a2dd1 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "InsetMarginal.h"
 
+#include "Buffer.h"
 #include "gettext.h"
 #include "Paragraph.h"
 #include "OutputParams.h"
@@ -41,9 +42,9 @@ InsetMarginal::InsetMarginal(InsetMarginal const & in)
 }
 
 
-auto_ptr<InsetBase> InsetMarginal::doClone() const
+auto_ptr<Inset> InsetMarginal::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetMarginal(*this));
+       return auto_ptr<Inset>(new InsetMarginal(*this));
 }
 
 
@@ -66,7 +67,7 @@ int InsetMarginal::latex(Buffer const & buf, odocstream & os,
 int InsetMarginal::plaintext(Buffer const & buf, odocstream & os,
                              OutputParams const & runparams) const
 {
-       os << '[' << _("margin") << ":\n";
+       os << '[' << buf.B_("margin") << ":\n";
        InsetText::plaintext(buf, os, runparams);
        os << "\n]";