]> git.lyx.org Git - features.git/blobdiff - src/insets/insetquotes.C
Dekel language/encoding patch + a few fixes
[features.git] / src / insets / insetquotes.C
index 93104a4a43ac55f809308bd3fac748efe1d63aa5..a9b676918854943974a497937afc02c0caf63657 100644 (file)
@@ -230,7 +230,7 @@ void InsetQuotes::Read(Buffer const *, LyXLex & lex)
 int InsetQuotes::Latex(Buffer const * buf, ostream & os,
                       bool /*fragile*/, bool) const
 {
-       string doclang = buf->GetLanguage();
+       string doclang = buf->GetLanguage()->lang();
        int quoteind = quote_index[side][language];
        string qstr;
        
@@ -291,7 +291,7 @@ void InsetQuotes::Validate(LaTeXFeatures & features) const
 {
        char type = quote_char[quote_index[side][language]];
 
-       if (features.bufferParams().language == "default" 
+       if (features.bufferParams().language->lang() == "default" 
            && lyxrc.fontenc != "T1") {
                if (times == InsetQuotes::SingleQ) 
                        switch (type) {
@@ -311,7 +311,7 @@ void InsetQuotes::Validate(LaTeXFeatures & features) const
 }
 
 
-Inset * InsetQuotes::Clone() const
+Inset * InsetQuotes::Clone(Buffer const &) const
 {
   return new InsetQuotes(language, side, times);
 }