Browse Source

Fixed StackOverflow caused by adding too small a float value to floating element heights.

Lloyd Weehuizen 15 years ago
parent
commit
f6dafadb80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/LayoutBlockBoxSpace.cpp

+ 1 - 1
Source/Core/LayoutBlockBoxSpace.cpp

@@ -178,7 +178,7 @@ float LayoutBlockBoxSpace::PositionBox(Vector2f& box_position, float cursor, con
 			float normalised_position = box_position.x - parent_origin;
 			if (normalised_position < 0 ||
 				normalised_position + dimensions.x > parent->GetBox().GetSize().x)
-				return PositionBox(box_position, next_cursor + 0.00001f, dimensions, float_property);
+				return PositionBox(box_position, next_cursor + 0.01f, dimensions, float_property);
 		}
 	}