long current_width = 0;
wxNode *current = text_list->GetFirst();
- int i = 0;
while (current)
{
wxShapeTextLine *line = (wxShapeTextLine *)current->GetData();
if (current_width > max_width)
max_width = current_width;
current = current->GetNext();
- i ++;
}
*actual_height = n*char_height;
case 13:
{
new_line = TRUE; end_word = TRUE; i++;
+ break;
}
case wxT(' '):
{
dc.SetClippingRegion(
(long)(m_xpos - width/2.0), (long)(m_ypos - height/2.0),
- (long)width, (long)height);
+ (long)width+1, (long)height+1); // +1 to allow for rounding errors
wxNode *current = text_list->GetFirst();
while (current)