]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetquotes.C
fix #832
[lyx.git] / src / insets / insetquotes.C
index 69b01d0eab8cb6362dbcbf248c14927a71d9e5e4..a1d05e0567eaf706c38cd712c0d6041885d633bc 100644 (file)
@@ -218,7 +218,7 @@ LyXFont const InsetQuotes::convertFont(LyXFont const & f) const
 
 
 void InsetQuotes::draw(BufferView * bv, LyXFont const & font,
-                      int baseline, float & x, bool) const
+                      int baseline, float & x) const
 {
        string const text = dispString(font.language());
 
@@ -261,10 +261,17 @@ int InsetQuotes::latex(Buffer const * buf, ostream & os,
        // How do we get the local language here??
        lyx::pos_type curr_pos = parOwner()->getPositionOfInset(this);
        lyx::Assert(curr_pos != -1);
+
+#warning FIXME. We _must_ find another way to get the language. (Lgb)
+#if 0
+       // This cannot be used. (Lgb)
        string const curr_lang =
                parOwner()->getFont(buf->params,
                                    curr_pos).language()->babel();
-
+#else
+       // And this is not the way... (Lgb)
+       string const curr_lang = buf->params.language->lang();
+#endif
        const int quoteind = quote_index[side_][language_];
        string qstr;