* 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:
@@ -849,7 +849,7 @@ ServerFont::TruncateString(BString* inOut, uint32 mode, float width) const
|
||||
return;
|
||||
|
||||
// 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();
|
||||
int32 length = inOut->Length();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user