summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2018-09-27 15:57:43 +0000
committerMartin Owens <doctormo@gmail.com>2018-09-27 15:57:43 +0000
commit717a26eb64c59d599cf76444371a4085bfffceb4 (patch)
tree0d4ff1f68111a41c9253664051c571b8f08e8430 /src/selection.cpp
parentMake attrdialog use the new iconrenderer sigc++ signal (diff)
parentSP_ACTIVE_DESKTOP: check for NULL or eliminate (diff)
downloadinkscape-717a26eb64c59d599cf76444371a4085bfffceb4.tar.gz
inkscape-717a26eb64c59d599cf76444371a4085bfffceb4.zip
Merge branch 'master' of gitlab.com:inkscape/inkscape
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) {