aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--em-format/em-format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/em-format/em-format.c b/em-format/em-format.c
index c318655cb2..a323c56d65 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -859,6 +859,8 @@ em_format_redraw (EMFormat *emf)
void
em_format_set_mode(EMFormat *emf, em_format_mode_t type)
{
+ g_return_if_fail (EM_IS_FORMAT (emf));
+
if (emf->mode == type)
return;