From 587a457199a5102f9c930ec464efdb6daa420fee Mon Sep 17 00:00:00 2001 From: mbkma Date: Sat, 15 Aug 2020 20:37:12 +0200 Subject: Refresh bits panel after calculation --- src/math-equation.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/math-equation.c b/src/math-equation.c index c465500..ac70948 100644 --- a/src/math-equation.c +++ b/src/math-equation.c @@ -997,6 +997,9 @@ math_equation_set_number(MathEquation *equation, const MPNumber *x) equation->priv->ans_start = gtk_text_buffer_create_mark(GTK_TEXT_BUFFER(equation), NULL, &start, FALSE); equation->priv->ans_end = gtk_text_buffer_create_mark(GTK_TEXT_BUFFER(equation), NULL, &end, TRUE); gtk_text_buffer_apply_tag(GTK_TEXT_BUFFER(equation), equation->priv->ans_tag, &start, &end); + + g_object_notify(G_OBJECT(equation), "display"); + g_free(text); free_state(state); } -- cgit v1.2.1