From 6adb083384e1c47a11595fc9b06ba3c9b4f9ae63 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 16 Feb 2022 14:24:46 +0100 Subject: [PATCH] Use copy --- src/Text3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index 777a580e94..9143e26597 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -326,7 +326,7 @@ static bool doInsertInset(Cursor & cur, Text * text, if (inset_text) { Font const & font = inset->inheritFont() ? cur.bv().textMetrics(text).displayFont(cur.pit(), cur.pos()) - : buffer.params().getFont(); + : bparams.getFont(); inset_text->setOuterFont(cur.bv(), font.fontInfo()); }