From b7b9bc76c0dc59c3cbf85127be3898a06c0a8a26 Mon Sep 17 00:00:00 2001 From: Robin Sonefors Date: Thu, 30 Sep 2010 17:12:58 +0200 Subject: [PATCH 02/25] Fix crash when pasting with empty clipboard Bug: https://bugzilla.gnome.org/show_bug.cgi?id=629381 Bug-Ubuntu: http://launchpad.net/bugs/651455 --- src/math-equation.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) Index: gcalctool-5.32.0/src/math-equation.c =================================================================== --- gcalctool-5.32.0.orig/src/math-equation.c 2010-10-14 16:28:45.529934001 +1100 +++ gcalctool-5.32.0/src/math-equation.c 2010-10-14 16:28:51.199934000 +1100 @@ -473,7 +473,8 @@ 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); }