ftwfy
ftwfy copied to clipboard
Fix GraphicHelper's trim method
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.