From: Jean-Marc Lasgouttes Date: Thu, 9 Jun 2016 14:42:24 +0000 (+0200) Subject: Always initialize InsetQuote language in constructor X-Git-Tag: 2.3.0alpha1~1531 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a0c2328fd641cd0736ec72b36a2ee13550b614d7;p=features.git Always initialize InsetQuote language in constructor Found by Coverity --- diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 039465da44..ba5a127564 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -100,6 +100,9 @@ InsetQuotes::InsetQuotes(Buffer * buf, char_type c, QuoteTimes t) { if (buf) language_ = buf->params().quotes_language; + else + language_ = EnglishQuotes; + setSide(c); }