diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-09-27 15:48:12 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-09-27 15:50:23 +0000 |
| commit | 526e8ead4e28bd8c77c4b4b12ecdbccd29b1cf90 (patch) | |
| tree | 1971030c29796a4b1e443abe8d79d24ac87abab0 /src/selection.cpp | |
| parent | Propagate IconRenderer's activate signal so we don't have to guess where the ... (diff) | |
| download | inkscape-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.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) { |
