[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] rev 2244 - trunk/src
From: |
address@hidden |
Subject: |
[Pingus-CVS] rev 2244 - trunk/src |
Date: |
Sat, 10 Apr 2004 21:07:25 +0200 |
Author: torangan
Date: 2004-04-10 21:07:24 +0200 (Sat, 10 Apr 2004)
New Revision: 2244
Modified:
trunk/src/string_format.cxx
Log:
check the last word as well
Modified: trunk/src/string_format.cxx
===================================================================
--- trunk/src/string_format.cxx 2004-04-10 19:05:55 UTC (rev 2243)
+++ trunk/src/string_format.cxx 2004-04-10 19:07:24 UTC (rev 2244)
@@ -80,6 +80,10 @@
previous_space = pos;
}
+
+ if (font->get_text_width(text.substr(start_pos, text.length() - start_pos))
> length)
+ text[text.rfind(' ')] = '\n';
+
#endif
return text;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] rev 2244 - trunk/src,
address@hidden <=