summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-10-22 17:29:20 +0000
committerjabiertxof <jabier.arraiza@marker.es>2015-10-22 17:29:20 +0000
commit18fb85f11cb4ddf4d1fdfd1d9cd6880919ce3720 (patch)
tree5cf6f61dc723969de95dbc1b17f31938805c5a90 /src/document.cpp
parentAdd precision to measure. Also change other scalar widgets to a .2 precision ... (diff)
parentAdded Scale option (diff)
downloadinkscape-18fb85f11cb4ddf4d1fdfd1d9cd6880919ce3720.tar.gz
inkscape-18fb85f11cb4ddf4d1fdfd1d9cd6880919ce3720.zip
Fix the points Nathan review.
Make accesible the comented function to only detect visible crossings (bzr r14393.3.1)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 97113cb25..0e49f23e2 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -1470,15 +1470,15 @@ std::vector<SPItem*> SPDocument::getItemsAtPoints(unsigned const key, std::vecto
if(desktop){
layer_model = desktop->layers;
}
- size_t h = 0;
+ size_t item_counter = 0;
for(int i = points.size()-1;i>=0; i--) {
SPItem *item = find_item_at_point(&nodes, key, points[i]);
if (item && items.end()==find(items.begin(),items.end(), item))
if(all_layers || (layer_model && layer_model->layerForObject(item) == current_layer)){
items.push_back(item);
- h++;
+ item_counter++;
//limit 0 = no limit
- if(h == limit){
+ if(item_counter == limit){
prefs->setDouble("/options/cursortolerance/value", saved_delta);
return items;
}