summaryrefslogtreecommitdiff
path: root/FL/Fl_Text_Buffer.H
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-11-06 23:58:57 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-11-06 23:58:57 +0000
commitf0993114811eef4e4dee703d4ebb4769c21f3ff9 (patch)
tree4441b3f322655de6e0a1158943669897211eb60b /FL/Fl_Text_Buffer.H
parent213318ccb3f5012da07b143e29a5dc5c8b5192de (diff)
Better alignment testing
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Text_Buffer.H')
-rw-r--r--FL/Fl_Text_Buffer.H2
1 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl_Text_Buffer.H b/FL/Fl_Text_Buffer.H
index 25ce72b79..cc9e0be70 100644
--- a/FL/Fl_Text_Buffer.H
+++ b/FL/Fl_Text_Buffer.H
@@ -39,8 +39,10 @@
#ifdef ASSERT_UTF8
# include <assert.h>
# define IS_UTF8_ALIGNED(a) if (a && *a) assert(fl_utf8len(*(a))>0);
+# define IS_UTF8_ALIGNED2(a, b) if (b>=0 && b<a->length()) assert(fl_utf8len(a->byte_at(b))>0);
#else
# define IS_UTF8_ALIGNED(a)
+# define IS_UTF8_ALIGNED2(a, b)
#endif