Applied patch from stimut (#6353), thanks!
In ServerWindow::_DispatchViewDrawingMessage(), for AS_DRAW_STRING_WITH_OFFSETS, the string length rather than the number of UTF8 glyphs is used, thus leading to an app_server crash. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40310 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2782,7 +2782,7 @@ ServerWindow::_DispatchViewDrawingMessage(int32 code,
|
||||
DTRACE(("ServerWindow %s: Message AS_DRAW_STRING_WITH_OFFSETS, View: %s "
|
||||
"-> %s\n", Title(), fCurrentView->Name(), string));
|
||||
|
||||
for (int32 i = 0; i < stringLength; i++)
|
||||
for (int32 i = 0; i < glyphCount; i++)
|
||||
fCurrentView->ConvertToScreenForDrawing(&locations[i]);
|
||||
|
||||
BPoint penLocation = drawingEngine->DrawString(string,
|
||||
|
||||
Reference in New Issue
Block a user