Permalink
Browse files

Fix drag points not shown on some entities

  • Loading branch information...
feragon committed Jun 10, 2016
1 parent fb78fef commit ad4e894968c10b2ecdc4cdcfc1263f94bbd958fe
Showing with 2 additions and 2 deletions.
  1. +2 −2 lcviewernoqt/managers/dragmanager.cpp
@@ -15,7 +15,7 @@ std::vector<lc::geo::Coordinate> DragManager::closeEntitiesDragPoints() {
auto entities = _docCanvas->selection();
if(entities.asVector().size() == 0) {
entities = _docCanvas->entityContainer().entitiesWithinAndCrossingArea(_toleranceArea, 5);
entities = _docCanvas->entityContainer().entitiesWithinAndCrossingArea(_toleranceArea);
}
entities.each<const lc::Draggable>([&](lc::Draggable_CSPtr entity) {
@@ -105,7 +105,7 @@ void DragManager::onMousePress() {
auto entities = _docCanvas->selection();
if(entities.asVector().size() == 0) {
entities = _docCanvas->entityContainer().entitiesWithinAndCrossingArea(_toleranceArea, 5);
entities = _docCanvas->entityContainer().entitiesWithinAndCrossingArea(_toleranceArea);
}
auto entitiesNearCursor = entities.asVector();

0 comments on commit ad4e894

Please sign in to comment.