ftwfy icon indicating copy to clipboard operation
ftwfy copied to clipboard

Fix GraphicHelper's trim method

Open wilder opened this issue 6 years ago • 0 comments

The goal of the method is to remove the leading spaces from the area to be drawn when more than one word is being searched.

When the user searches for a text occurrence of more than one word, for example: "for example" it matches and draws the rectangle in the whole line where it occur. It should only draw the rectangle around the "for example" occurrences.

There is already and implementation of this method, but the the weights used are incorrect.

wilder avatar Oct 16 '17 01:10 wilder