em-format: Guard entry point to em_format_set_mode with g_return_if_fail

This commit is contained in:
Rob Bradford
2010-08-02 15:05:32 +01:00
parent 74a6864d36
commit 2b6e5cce19

View File

@ -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;