summaryrefslogtreecommitdiffstats
path: root/src/object
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-09-27 15:48:12 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-09-27 15:50:23 +0000
commit526e8ead4e28bd8c77c4b4b12ecdbccd29b1cf90 (patch)
tree1971030c29796a4b1e443abe8d79d24ac87abab0 /src/object
parentPropagate IconRenderer's activate signal so we don't have to guess where the ... (diff)
downloadinkscape-526e8ead4e28bd8c77c4b4b12ecdbccd29b1cf90.tar.gz
inkscape-526e8ead4e28bd8c77c4b4b12ecdbccd29b1cf90.zip
SP_ACTIVE_DESKTOP: check for NULL or eliminate
Diffstat (limited to 'src/object')
-rw-r--r--src/object/sp-item.cpp2
1 files changed, 1 insertions, 1 deletions
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<SPItem *>(parent)->i2dt_affine().inverse();
- } else {
+ } else if (SP_ACTIVE_DESKTOP) {
SPDesktop *dt = SP_ACTIVE_DESKTOP;
dt2p = dt->dt2doc();
}