Partially revert b3c5969c3e
.
The meaning of wrap-char is different from what I originally thought.
This commit is contained in:
parent
d6c8fe37a9
commit
dbead9bc00
1 changed files with 1 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue