changeset 18744:328311cde7a0 draft

(svn r23592) -Fix (r23590): forgot one case
author truebrain <truebrain@openttd.org>
date Sun, 18 Dec 2011 19:39:24 +0000
parents 21b318379830
children c2cfd98f0c98
files src/fontcache.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -568,7 +568,7 @@
 		 * mess with the automatic font detection */
 		char buff[256]; // This length is enough to find a suitable replacement font
 		strecpy(buff, str, lastof(buff));
-		str_validate(buff, lastof(buff), true, false);
+		str_validate(buff, lastof(buff), SVS_ALLOW_NEWLINE);
 
 		/* Extract a UniChar represenation of the sample string. */
 		CFStringRef cf_str = CFStringCreateWithCString(kCFAllocatorDefault, buff, kCFStringEncodingUTF8);