summaryrefslogtreecommitdiff
path: root/prototypes/textedit
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-06-12 13:36:23 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2010-06-12 13:36:23 +0200
commit1031017c9e8e569cc51f5f385b1bd230b823efe5 (patch)
tree649852f2433c6ea4d861f7f1fa7d25c8ca393a0c /prototypes/textedit
parent53e63bc51dd0fa76fc919d1f82d3c78fcd57eaad (diff)
downloadfpGUI-1031017c9e8e569cc51f5f385b1bd230b823efe5.tar.xz
TextEdit: Fixed confusion between X, Y values for text selection handling.
Diffstat (limited to 'prototypes/textedit')
-rw-r--r--prototypes/textedit/fpg_textedit.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/prototypes/textedit/fpg_textedit.pas b/prototypes/textedit/fpg_textedit.pas
index f17c79c4..4a9994d8 100644
--- a/prototypes/textedit/fpg_textedit.pas
+++ b/prototypes/textedit/fpg_textedit.pas
@@ -1510,8 +1510,8 @@ begin
if not FSelected then
begin
- FSelStartNo := CaretPos.x;
- FSelStartOffs := CaretPos.y;
+ FSelStartNo := CaretPos.Y;
+ FSelStartOffs := CaretPos.X;
end;
end;