summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
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) {