'tap': do not consider texts as detecting them requires capturing a large area - which is against performance

This commit is contained in:
Matthias Koefferlein 2025-07-21 20:40:01 +02:00
parent 57025a7f9f
commit 2d5778a860
1 changed files with 6 additions and 1 deletions

View File

@ -2364,7 +2364,12 @@ MainService::cm_tap ()
return;
}
lay::ShapeFinder finder (true /*point mode*/, false /*all hierarchy levels*/, db::ShapeIterator::All, 0, true /*capture all shapes*/);
lay::ShapeFinder finder (true, // point mode
false, // all hierarchy levels
db::ShapeIterator::flags_type (db::ShapeIterator::All - db::ShapeIterator::Texts), // do not consider texts - their bounding box may be too large
0, // no excludes
true // capture all shapes
);
// capture all objects in point mode (default: capture one only)
finder.set_catch_all (true);