diff options
| author | engelsman <engelsman> | 2010-04-18 14:33:33 +0000 |
|---|---|---|
| committer | engelsman <engelsman> | 2010-04-18 14:33:33 +0000 |
| commit | 9545e033bbce1283d33325eb8710773adcffd52e (patch) | |
| tree | 83a6382eb66510bfb9c13fc9828162ecdcd29637 /FL/Fl_Text_Display.H | |
| parent | 1cd104557200738017190ed273ac3cf83ced1a30 (diff) | |
Fl_Text_Buffer/Display fixes for UTF-8 / STR-2158 (part 1)
fixes to handle incorrect counting of UTF-8 characters by checking
for complete UTF-8 encodings in char* rather than char by char.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Text_Display.H')
| -rw-r--r-- | FL/Fl_Text_Display.H | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H index 08dc8dad1..1268b1bf2 100644 --- a/FL/Fl_Text_Display.H +++ b/FL/Fl_Text_Display.H @@ -251,7 +251,7 @@ class FL_EXPORT Fl_Text_Display: public Fl_Group { bool countLastLineMissingNewLine = true) const; void find_line_end(int pos, bool start_pos_is_line_start, int *lineEnd, int *nextLineStart) const; - int measure_proportional_character(char c, int colNum, int pos) const; + int measure_proportional_character(const char *s, int colNum, int pos) const; int wrap_uses_character(int lineEndPos) const; int range_touches_selection(const Fl_Text_Selection *sel, int rangeStart, int rangeEnd) const; |
