aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2010-08-02 22:05:32 +0800
committerRob Bradford <rob@linux.intel.com>2010-08-02 22:36:50 +0800
commit2b6e5cce1912d6d7bb7f69b7cae29ccb0c8a7161 (patch)
treebf3a7327e1dfcfec24be7548d6fce31a7415fa9c
parent74a6864d36f3c423d8932718502e04b18d93a40e (diff)
downloadgsoc2013-evolution-2b6e5cce1912d6d7bb7f69b7cae29ccb0c8a7161.tar.gz
gsoc2013-evolution-2b6e5cce1912d6d7bb7f69b7cae29ccb0c8a7161.tar.zst
gsoc2013-evolution-2b6e5cce1912d6d7bb7f69b7cae29ccb0c8a7161.zip
em-format: Guard entry point to em_format_set_mode with g_return_if_fail
-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;