Am Montag, dem 23.05.2022 um 10:35 +0200 schrieb Kornel Benko:
> 
> Setting quote-style does not work in the replace_work_area.
> The setting
>         Dokument->Settings->Language->Quote-style
> has no effect.

The embedded buffers in F&R are "internal", so changes in the document
settings have no effect on them. This also applies to main language,
for instance.

When opening the F&R pane, some document params (such as language) are
copied, though not quote style. The attached patch changes that.

> but because of not able to set the quote-style in replace_work_area,
> findadv is not able to correct the quotes.

The most elegant way to change the quotes there, currently, is probably
to use the context menu of a quote inset.

> 
>         Kornel

-- 
Jürgen
diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 95aa9136d2..e62d0100c8 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -3805,6 +3805,7 @@ void BufferParams::copyForAdvFR(const BufferParams & bp)
 {
 	string const & lang = bp.language->lang();
 	setLanguage(lang);
+	quotes_style = bp.quotes_style;
 	layout_modules_ = bp.layout_modules_;
 	string const & doc_class = bp.documentClass().name();
 	setBaseClass(doc_class);

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to