* Implemented issue-982 (heal option for strmxor)

The option is -m or --heal.
It is default off as in boundary cases (e.g. full layer vs. empty)
the healing adds a considerable memory and performance penalty.

Healing is only effective with tiling and affects output shapes
as well as shape counts.

* Fixed issue 994 (maybe, increased capture range for catching an existing selection)
This commit is contained in:
Matthias Köfferlein 2022-02-13 19:05:21 +01:00 committed by Matthias Koefferlein
parent 7ef5cdd8ac
commit c46307a989
1 changed files with 4 additions and 1 deletions

View File

@ -159,7 +159,10 @@ Editables::selection_catch_bbox ()
{
db::DBox sel_bbox;
for (iterator e = begin (); e != end (); ++e) {
double l = e->catch_distance ();
// we use a larger distance for the bbox because once there is a box it's
// more likely we want to capture it and it's tedious to capture a single
// text otherwise (issue-994).
double l = e->catch_distance () * 3.0;
sel_bbox += e->selection_bbox ().enlarged (db::DVector (l, l));
}
return sel_bbox;