summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
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/selection.cpp
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/selection.cpp')
-rw-r--r--src/selection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selection.cpp b/src/selection.cpp
index 142695855..7076174bc 100644
--- a/src/selection.cpp
+++ b/src/selection.cpp
@@ -192,7 +192,7 @@ Selection::emptyBackup(){
void
Selection::setBackup ()
{
- SPDesktop *desktop = SP_ACTIVE_DESKTOP;
+ SPDesktop *desktop = this->desktop();
SPDocument *document = SP_ACTIVE_DOCUMENT;
Inkscape::UI::Tools::NodeTool *tool = nullptr;
if (desktop) {
@@ -255,7 +255,7 @@ Selection::setBackup ()
void
Selection::restoreBackup()
{
- SPDesktop *desktop = SP_ACTIVE_DESKTOP;
+ SPDesktop *desktop = this->desktop();
SPDocument *document = SP_ACTIVE_DOCUMENT;
Inkscape::UI::Tools::NodeTool *tool = nullptr;
if (desktop) {