From: Enlightenment C. <no...@cv...> - 2007-08-20 18:22:25
|
Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/lib Modified Files: ewl_text_fmt.c Log Message: spit out a warning if the length of the fmt is not equal to the length of the text =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text_fmt.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_text_fmt.c 18 Aug 2007 00:26:47 -0000 1.5 +++ ewl_text_fmt.c 20 Aug 2007 18:22:20 -0000 1.6 @@ -421,6 +421,13 @@ DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("fmt", fmt); + + if (fmt->length.char_len != EWL_TEXT(fmt->text)->length.chars) { + DWARNING("The character length of the ftm (%u) is not" + " equal to the length of the text (%u)\n", + fmt->length.char_len, + EWL_TEXT(fmt->text)->length.chars); + } if (idx >= fmt->length.char_len) { |