]> git.lyx.org Git - lyx.git/commitdiff
Use master buffer params for quote style
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 25 Dec 2016 16:23:07 +0000 (17:23 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 25 Dec 2016 16:23:07 +0000 (17:23 +0100)
+ some formatting polishment

src/frontends/qt4/Menus.cpp

index 3ea36f5fe74579c12b1d6747b7b7f23564575637..1119cc3c7cadd0274c9fff1e3c3670001551e405 100644 (file)
@@ -1688,31 +1688,40 @@ void MenuDefinition::expandQuotes(BufferView const * bv)
        MenuDefinition iqs;
        MenuDefinition rqs;
        MenuDefinition xqs;
-       InsetQuotesParams::QuoteStyle globalqs = bv->buffer().params().quotes_style;
+       InsetQuotesParams::QuoteStyle globalqs =
+                       bv->buffer().masterBuffer()->params().quotes_style;
        FuncRequest cmd = FuncRequest(LFUN_INSET_MODIFY, from_ascii("changetype xld"));
-       docstring desc = bformat(_("%1$stext (dynamic)"), docstring(1, quoteparams.getQuoteChar(globalqs, InsetQuotesParams::PrimaryQuotes,
-                                                                                  InsetQuotesParams::OpeningQuote)));
+       docstring desc = bformat(_("%1$stext (dynamic)"),
+                                docstring(1, quoteparams.getQuoteChar(globalqs,
+                                                                      InsetQuotesParams::PrimaryQuotes,
+                                                                      InsetQuotesParams::OpeningQuote)));
        if (prefixIs(qtype, "x"))
                add(MenuItem(MenuItem::Command, toqstr(desc), cmd));
        else
                xqs.add(MenuItem(MenuItem::Command, toqstr(desc), cmd));
        cmd = FuncRequest(LFUN_INSET_MODIFY, from_ascii("changetype xls"));
-       desc = bformat(_("%1$stext (dynamic)"), docstring(1, quoteparams.getQuoteChar(globalqs, InsetQuotesParams::SecondaryQuotes,
-                                                                                InsetQuotesParams::OpeningQuote)));
+       desc = bformat(_("%1$stext (dynamic)"),
+                      docstring(1, quoteparams.getQuoteChar(globalqs, 
+                                                            InsetQuotesParams::SecondaryQuotes,
+                                                            InsetQuotesParams::OpeningQuote)));
        if (prefixIs(qtype, "x"))
                add(MenuItem(MenuItem::Command, toqstr(desc), cmd));
        else
                xqs.add(MenuItem(MenuItem::Command, toqstr(desc), cmd));
        cmd = FuncRequest(LFUN_INSET_MODIFY, from_ascii("changetype xrd"));
-       desc = bformat(_("text%1$s (dynamic)"), docstring(1, quoteparams.getQuoteChar(globalqs, InsetQuotesParams::PrimaryQuotes,
-                                                                                InsetQuotesParams::ClosingQuote)));
+       desc = bformat(_("text%1$s (dynamic)"),
+                      docstring(1, quoteparams.getQuoteChar(globalqs,
+                                                            InsetQuotesParams::PrimaryQuotes,
+                                                            InsetQuotesParams::ClosingQuote)));
        if (prefixIs(qtype, "x"))
                add(MenuItem(MenuItem::Command, toqstr(desc), cmd));
        else
                xqs.add(MenuItem(MenuItem::Command, toqstr(desc), cmd));
        cmd = FuncRequest(LFUN_INSET_MODIFY, from_ascii("changetype xrs"));
-       desc = bformat(_("text%1$s (dynamic)"), docstring(1, quoteparams.getQuoteChar(globalqs, InsetQuotesParams::SecondaryQuotes,
-                                                                                InsetQuotesParams::ClosingQuote)));
+       desc = bformat(_("text%1$s (dynamic)"),
+                      docstring(1, quoteparams.getQuoteChar(globalqs,
+                                                            InsetQuotesParams::SecondaryQuotes,
+                                                            InsetQuotesParams::ClosingQuote)));
        if (prefixIs(qtype, "x"))
                add(MenuItem(MenuItem::Command, toqstr(desc), cmd));
        else