From c46307a989da504fa617493fb033519a00803e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6fferlein?= Date: Sun, 13 Feb 2022 19:05:21 +0100 Subject: [PATCH] Issue 994 (#1006) * 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) --- src/laybasic/laybasic/layEditable.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/laybasic/laybasic/layEditable.cc b/src/laybasic/laybasic/layEditable.cc index 9636af8ed..a391c6845 100644 --- a/src/laybasic/laybasic/layEditable.cc +++ b/src/laybasic/laybasic/layEditable.cc @@ -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;