GRAPHICS: MACGUI: Fixed bug with column detection in text selection
This commit is contained in:
parent
c7f83cd435
commit
1241ada63a
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ void MacText::getRowCol(int x, int y, int *sx, int *sy, int *row, int *col) {
|
|||
for (int i = str.size(); i >= 0; i--) {
|
||||
int strw = _textLines[*row].chunks[chunk].getFont()->getStringWidth(str);
|
||||
if (strw + pwidth < x) {
|
||||
*col = mcol + i;
|
||||
*col = pmcol + i;
|
||||
*sx = strw + pwidth;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue