Show
Ignore:
Timestamp:
07/27/08 07:07:12 (6 months ago)
Author:
tom
Message:

Make sure we set the height of the string if it doesn't contain
any spaces where we could break the line.

Patch from Jon Burgess <jburgess777@…>.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/placement_finder.cpp

    r683 r716  
    276276         } 
    277277         line_width += word_width; 
     278         line_height = line_height > word_height ? line_height : word_height; 
    278279         string_width = string_width > line_width ? string_width : line_width; 
     280         string_height += line_height; 
    279281         line_breaks.push_back(p.info.num_characters() + 1); 
    280282         line_widths.push_back(line_width);