Partially revert b3c5969c3e.

The meaning of wrap-char is different from what I originally thought.
This commit is contained in:
Hermann Kraus 2012-07-30 01:24:18 +02:00
parent d6c8fe37a9
commit dbead9bc00

View file

@ -44,14 +44,7 @@ text_layout::text_layout(face_manager_freetype &font_manager)
void text_layout::add_text(const UnicodeString &str, char_properties_ptr format)
{
if (format->wrap_char)
{
UnicodeString copy = str;
copy.findAndReplace(UChar32(format->wrap_char), "\n");
itemizer_.add_text(copy, format);
} else {
itemizer_.add_text(str, format);
}
itemizer_.add_text(str, format);
}
void text_layout::layout(double wrap_width, unsigned text_ratio)