summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/grid.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-02-26 23:35:45 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-05-09 19:42:11 +0000
commitcf0e762fa380de08b8f3043b4e9c0b3c33fd817b (patch)
tree0791e9eda32f35a633b0dd7112091556c0eacf8c /src/extension/internal/grid.cpp
parentFix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60693688 (diff)
downloadinkscape-cf0e762fa380de08b8f3043b4e9c0b3c33fd817b.tar.gz
inkscape-cf0e762fa380de08b8f3043b4e9c0b3c33fd817b.zip
fix https://gitlab.com/inkscape/inkscape/merge_requests/208#note_60694271
Diffstat (limited to 'src/extension/internal/grid.cpp')
-rw-r--r--src/extension/internal/grid.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/extension/internal/grid.cpp b/src/extension/internal/grid.cpp
index 6b3f2efe3..c7ebf2494 100644
--- a/src/extension/internal/grid.cpp
+++ b/src/extension/internal/grid.cpp
@@ -86,17 +86,7 @@ Glib::ustring build_lines(Geom::Rect bounding_area,
void
Grid::effect (Inkscape::Extension::Effect *module, Inkscape::UI::View::View *document, Inkscape::Extension::Implementation::ImplementationDocumentCache * /*docCache*/)
{
- SPDesktop *desktop = ((SPDesktop *)document);
- Inkscape::Selection * selection = NULL;
- if (desktop) {
- selection = desktop->getSelection();
- if (selection && !selection->params.empty()) {
- selection->restoreBackup();
- if (!desktop->on_live_extension) {
- selection->emptyBackup();
- }
- }
- }
+ Inkscape::Selection * selection = ((SPDesktop *)document)->selection;
Geom::Rect bounding_area = Geom::Rect(Geom::Point(0,0), Geom::Point(100,100));
if (selection->isEmpty()) {