X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=extras%2Fhtml%2Flines.ec;fp=extras%2Fhtml%2Flines.ec;h=362382098e2c45a683dedb0c598cd9de3f131579;hb=12cb9288a539df89d4b4e7bdb21cd78da2cd10e3;hp=7381e26a2b3318915cecbef6ad4cdccba41e1714;hpb=015a9e7983015e131e7cae2b946563c3234c0e7b;p=sdk diff --git a/extras/html/lines.ec b/extras/html/lines.ec index 7381e26..3623820 100644 --- a/extras/html/lines.ec +++ b/extras/html/lines.ec @@ -546,7 +546,8 @@ bool PickLine(HTMLView browser, Surface surface, int x, int y, int w, int h, Blo surface.TextExtent(block.text + textPos, len, &tw, &th); // eSurface_WriteText(surface, x, y + h - th, block.text + textPos, len); - if(pickX >= x && pickY >= y+h-th && pickX < x + tw && pickY < y+h) + if(block.text[0] == ' ' && block.text[1] == 0) pickX += tw; else + if(pickX >= x && pickY >= y+h-th && pickX < x + tw + 2 && pickY < y+h) { result = true; *pickBlock = block;