Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

2009-03-04 Jeffrey Stedfast <fejj@novell.com>

	Fixes the last failing case in LineBreakBasic1.htm

	* layout.cpp (layout_word_wrap): When checking for last_word, use
	<= instead of < because inptr, at this point, is at the first byte
	*after* the character just gobbled up.


svn path=/branches/moon-text-layout/; revision=128580
  • Loading branch information...
commit 2d5077efe896151c81e360686d14f33f47e4427a 1 parent 16e0d0e
@jstedfast jstedfast authored
Showing with 9 additions and 1 deletion.
  1. +8 −0 src/ChangeLog
  2. +1 −1  src/layout.cpp
View
8 src/ChangeLog
@@ -1,5 +1,13 @@
2009-03-04 Jeffrey Stedfast <fejj@novell.com>
+ Fixes the last failing case in LineBreakBasic1.htm
+
+ * layout.cpp (layout_word_wrap): When checking for last_word, use
+ <= instead of < because inptr, at this point, is at the first byte
+ *after* the character just gobbled up.
+
+2009-03-04 Jeffrey Stedfast <fejj@novell.com>
+
Fixes ActualWidth/Height extents for LineBreakBasic1.htm
* layout.cpp (TextLayout::LayoutWrapWithOverflow): ActualWidth
View
2  src/layout.cpp
@@ -1209,7 +1209,7 @@ layout_word_wrap (LayoutWord *word, const char *in, const char *inend, double ma
if (max_width > 0.0 && word->line_advance >= max_width) {
printf ("\tjust exceeded max width: %s\n", debug->str);
- if (inptr < word->last_word) {
+ if (inptr <= word->last_word) {
// not the last word, safe to break apart
printf ("\tnot last word, so applying wrap logic...\n");
wrap = true;
Please sign in to comment.
Something went wrong with that request. Please try again.