Corrected (x; y) -> visual position mapping in situation when target offset points to line feed

This commit is contained in:
Denis Zhdanov
2011-01-25 09:40:55 +03:00
parent b8630448f5
commit de90ad7d31
@@ -1015,7 +1015,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
charWidth = EditorUtil.charWidth(c, fontType, this);
}
if (charWidth <= 0) {
if (charWidth < 0) {
charWidth = spaceSize;
}