[LyX/2.3.x] Handle LFUN_FONT_DEFAULT is InsetTabular::Dispatch (fixes #12566)

Juergen Spitzmueller spitz at lyx.org
Wed Nov 23 10:28:26 UTC 2022


commit 693112b3c222e2ce37e6805023109241cbb85f5b
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Wed Nov 23 12:22:54 2022 +0100

    Handle LFUN_FONT_DEFAULT is InsetTabular::Dispatch (fixes #12566)
---
 src/insets/InsetTabular.cpp |    1 +
 status.23x                  |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 30a5b85..6d7f836 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -4582,6 +4582,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
 	case LFUN_FONT_SANS:
 	case LFUN_TEXTSTYLE_APPLY:
 	case LFUN_TEXTSTYLE_UPDATE:
+	case LFUN_FONT_DEFAULT: 
 	case LFUN_FONT_SIZE:
 	case LFUN_FONT_UNDERLINE:
 	case LFUN_FONT_STRIKEOUT:
diff --git a/status.23x b/status.23x
index 1143ec8..1c76684 100644
--- a/status.23x
+++ b/status.23x
@@ -105,6 +105,8 @@ What's new
 - Fix crash in tabular when an empty paragraph is removed
   automatically (bug 12117).
 
+- Fix crash in tabular when resetting font (bug 12566).
+
 - On screen, show upper case greek letters in \mathbf as bold (bug 3751).
 
 - Fix coloring of text-mode material in math equations (bug 11007).


More information about the lyx-cvs mailing list