]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.C
fix compilation pb ; update eu.po
[lyx.git] / src / insets / insetminipage.C
index 9a2f1e2739810177166ec770d922f48537e81941..d0d9ea13157a37d3a07c9a775f997dbb4960db1f 100644 (file)
@@ -24,6 +24,7 @@
 #include "support/LOstream.h"
 #include "support/lstrings.h"
 #include "debug.h"
+#include "gettext.h"
 
 using std::ostream;
 using std::endl;
@@ -148,7 +149,10 @@ void InsetMinipage::Read(Buffer const * buf, LyXLex & lex)
                       << endl;
        }
     }
+#ifdef WITH_WARNINGS
 #warning Remove me before final 1.2.0 (Jug)
+#warning Can we please remove this as soon as possible? (Lgb)
+#endif
     // this is only for compatibility to the intermediate format and should
     // vanish till the final 1.2.0!
     if (lex.IsOK()) {
@@ -176,7 +180,7 @@ void InsetMinipage::Read(Buffer const * buf, LyXLex & lex)
 Inset * InsetMinipage::Clone(Buffer const &) const
 {
        InsetMinipage * result = new InsetMinipage;
-       result->inset->init(inset);
+       result->inset.init(&inset);
        
        result->collapsed = collapsed;
        result->pos_ = pos_;
@@ -259,7 +263,7 @@ int InsetMinipage::Latex(Buffer const * buf,
        os << "\\begin{minipage}[" << s_pos << "]{"
           << LyXLength(width_).asLatexString() << "}%\n";
        
-       int i = inset->Latex(buf, os, fragile, fp);
+       int i = inset.Latex(buf, os, fragile, fp);
 
        os << "\\end{minipage}%\n";
        return i + 2;
@@ -326,7 +330,7 @@ void InsetMinipage::width(string const & ll)
 
 bool InsetMinipage::ShowInsetDialog(BufferView * bv) const
 {
-    if (!inset->ShowInsetDialog(bv))
+    if (!inset.ShowInsetDialog(bv))
        bv->owner()->getDialogs()->showMinipage(const_cast<InsetMinipage *>(this));
     return true;
 }