summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/select-tool.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2014-01-08 20:57:01 +0000
committerMartin Owens <doctormo@gmail.com>2014-01-08 20:57:01 +0000
commit4f797dec1d4a48a21509ae83562f5521467bc6ac (patch)
treeea1a033ba5c75fa18116fbd91cea1030af61d753 /src/ui/tools/select-tool.cpp
parentPrevent infinite loop with bad input. (diff)
downloadinkscape-4f797dec1d4a48a21509ae83562f5521467bc6ac.tar.gz
inkscape-4f797dec1d4a48a21509ae83562f5521467bc6ac.zip
Change my mind on the solution to the bug, protect all selection additions.
Fixed bugs: - https://launchpad.net/bugs/168695 (bzr r12894)
Diffstat (limited to 'src/ui/tools/select-tool.cpp')
-rw-r--r--src/ui/tools/select-tool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/tools/select-tool.cpp b/src/ui/tools/select-tool.cpp
index 94f700ebb..498882417 100644
--- a/src/ui/tools/select-tool.cpp
+++ b/src/ui/tools/select-tool.cpp
@@ -692,8 +692,7 @@ bool SelectTool::root_handler(GdkEvent* event) {
}
} else { // simple or shift click, no previous selection
_seltrans->resetState();
- if(this->item && this->item->document)
- selection->set(this->item);
+ selection->set(this->item);
}
}