From 9889c1aaec7cabc7fdf425de7824784ce0da9f81 Mon Sep 17 00:00:00 2001 From: Steve Zesch Date: Thu, 15 Nov 2012 19:28:28 -0500 Subject: Fix crash when pasting with empty clipboard http://git.gnome.org/browse/gcalctool/commit/?h=gnome-2-32&id=b7b9bc76c0dc59c3cbf85127be3898a06c0a8a26 --- src/math-equation.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/math-equation.c') diff --git a/src/math-equation.c b/src/math-equation.c index 3450b80..ef86221 100644 --- a/src/math-equation.c +++ b/src/math-equation.c @@ -473,7 +473,9 @@ static void on_paste(GtkClipboard *clipboard, const gchar *text, gpointer data) { MathEquation *equation = data; - math_equation_insert (equation, text); + + if (text != NULL) + math_equation_insert(equation, text); } -- cgit v1.2.1