diff options
| author | Martin Owens <doctormo@gmail.com> | 2018-09-27 15:57:43 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2018-09-27 15:57:43 +0000 |
| commit | 717a26eb64c59d599cf76444371a4085bfffceb4 (patch) | |
| tree | 0d4ff1f68111a41c9253664051c571b8f08e8430 /src/selection.cpp | |
| parent | Make attrdialog use the new iconrenderer sigc++ signal (diff) | |
| parent | SP_ACTIVE_DESKTOP: check for NULL or eliminate (diff) | |
| download | inkscape-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.cpp | 4 |
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) { |
