diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-10-22 22:24:16 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-10-22 22:24:16 +0000 |
| commit | 314a6914f1a5862d50a4855e7da6317f9c09fc14 (patch) | |
| tree | ccddc8c14897aa4b81c50828cb0ec84d93a8fdd0 /src/document.cpp | |
| parent | Added Scale option (diff) | |
| parent | update to trunk (diff) | |
| download | inkscape-314a6914f1a5862d50a4855e7da6317f9c09fc14.tar.gz inkscape-314a6914f1a5862d50a4855e7da6317f9c09fc14.zip | |
update to trunk
(bzr r14393.1.28)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 6 |
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; } |
