* The string length of the UTF8 ellipsis was incorrect (would have been 3).

* Whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26961 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-08-13 12:53:25 +00:00
parent 55585cfa0d
commit f1efe9b3d2
+1 -1
View File
@@ -849,7 +849,7 @@ ServerFont::TruncateString(BString* inOut, uint32 mode, float width) const
return; return;
// the width of the "…" glyph // the width of the "…" glyph
float ellipsisWidth = StringWidth(B_UTF8_ELLIPSIS, 1); float ellipsisWidth = StringWidth(B_UTF8_ELLIPSIS, strlen(B_UTF8_ELLIPSIS));
const char* string = inOut->String(); const char* string = inOut->String();
int32 length = inOut->Length(); int32 length = inOut->Length();