summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/math-equation.c4
1 files changed, 3 insertions, 1 deletions
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);
}