From 2b6e5cce1912d6d7bb7f69b7cae29ccb0c8a7161 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 2 Aug 2010 15:05:32 +0100 Subject: em-format: Guard entry point to em_format_set_mode with g_return_if_fail --- em-format/em-format.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'em-format') 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; -- cgit