Code: Select all
// Go to previous glyph, if we are going backward
if (!forward)
if (--s == d_cp_map.begin ()) //CRASH HERE
break;
line 317 - file ceguifreetypefont.cpp
Moderators: CEGUI MVP, CEGUI Team
Code: Select all
// Go to previous glyph, if we are going backward
if (!forward)
if (--s == d_cp_map.begin ()) //CRASH HERE
break;
Code: Select all
#ifdef _DEBUG
#define _STLP_DEBUG 1
#endif
Code: Select all
Index: CEGUIFreeTypeFont.cpp
===================================================================
--- CEGUIFreeTypeFont.cpp (revision 1811)
+++ CEGUIFreeTypeFont.cpp (working copy)
@@ -314,7 +314,7 @@
}
// Go to previous glyph, if we are going backward
if (!forward)
- if (--s == d_cp_map.begin ())
+ if ((s == d_cp_map.begin()) || (--s == d_cp_map.begin()))
break;
}
Users browsing this forum: No registered users and 11 guests