From 526e8ead4e28bd8c77c4b4b12ecdbccd29b1cf90 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Thu, 27 Sep 2018 17:48:12 +0200 Subject: SP_ACTIVE_DESKTOP: check for NULL or eliminate --- src/object/sp-item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/object/sp-item.cpp') diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp index f91310ea5..411e69f71 100644 --- a/src/object/sp-item.cpp +++ b/src/object/sp-item.cpp @@ -1628,7 +1628,7 @@ void SPItem::set_i2d_affine(Geom::Affine const &i2dt) Geom::Affine dt2p; /* desktop to item parent transform */ if (parent) { dt2p = static_cast(parent)->i2dt_affine().inverse(); - } else { + } else if (SP_ACTIVE_DESKTOP) { SPDesktop *dt = SP_ACTIVE_DESKTOP; dt2p = dt->dt2doc(); } -- cgit v1.2.3