Code

Improve null check
authorishmal <ishmal@users.sourceforge.net>
Tue, 20 Feb 2007 21:03:56 +0000 (21:03 +0000)
committerishmal <ishmal@users.sourceforge.net>
Tue, 20 Feb 2007 21:03:56 +0000 (21:03 +0000)
src/xml/event.cpp

index cc130042e52eb7da0e474360d4da92e51f120deb..40f3029e14f04014367b83d0a3596d0e0d3b4467 100644 (file)
@@ -138,7 +138,7 @@ sp_repr_undo_log (Inkscape::XML::Event *log)
 
        EventTracker<SimpleEvent<Event::XML> > tracker("undo-log");
 
-       if (log) {
+       if (log && log->repr) {
                g_assert(!log->repr->document()->inTransaction());
        }