From: ishmal Date: Tue, 20 Feb 2007 21:03:56 +0000 (+0000) Subject: Improve null check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3fc04008f4e0a56d17e056c28762893b8aa6a91b;p=inkscape.git Improve null check --- diff --git a/src/xml/event.cpp b/src/xml/event.cpp index cc130042e..40f3029e1 100644 --- a/src/xml/event.cpp +++ b/src/xml/event.cpp @@ -138,7 +138,7 @@ sp_repr_undo_log (Inkscape::XML::Event *log) EventTracker > tracker("undo-log"); - if (log) { + if (log && log->repr) { g_assert(!log->repr->document()->inTransaction()); }