aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/macgui/mactext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index d3a612c22c..88fe6421a5 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -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;
}