Skip to content

Commit

Permalink
Tru fix unicode problem
Browse files Browse the repository at this point in the history
  • Loading branch information
alphaonex86 committed Jan 22, 2013
1 parent 1f58d42 commit 882338c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Components/SCTeam/ScPopupButton.pas
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ procedure TScPopupButton.Paint;
begin
if Win32Platform=VER_PLATFORM_WIN32_NT then
begin
DrawTextW(Canvas.Handle,Pwidechar(pCaption),length(pCaption),Rect,DT_CENTER+DT_VCENTER+DT_SINGLELINE);
DrawTextW(Canvas.Handle,Pwidechar(Utf8Decode(pCaption)),length(pCaption),Rect,DT_CENTER+DT_VCENTER+DT_SINGLELINE);
end else
begin
DrawText(Canvas.Handle,PChar(String(pCaption)),length(pCaption),Rect,DT_CENTER+DT_VCENTER+DT_SINGLELINE);
Expand Down

0 comments on commit 882338c

Please sign in to comment.