]> git.lyx.org Git - lyx.git/commitdiff
Use copy
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 16 Feb 2022 13:24:46 +0000 (14:24 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 16 Feb 2022 13:24:46 +0000 (14:24 +0100)
src/Text3.cpp

index 777a580e94eb7b7ea83e94fac624de61a4d31815..9143e2659767610c63161e38765354c5c31c7edd 100644 (file)
@@ -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());
        }