From 00347040848a36bf99618c382e42e9aa7ec2c8f8 Mon Sep 17 00:00:00 2001 From: martin Date: Fri, 14 Dec 2012 05:12:14 +0000 Subject: [PATCH] SynEdit: Prepare displaying ligatures (experimental, window only) git-svn-id: trunk@39533 - --- components/synedit/synedittextsystemcharwidth.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/synedit/synedittextsystemcharwidth.pas b/components/synedit/synedittextsystemcharwidth.pas index a8e7e5a9e6..4056a5f801 100644 --- a/components/synedit/synedittextsystemcharwidth.pas +++ b/components/synedit/synedittextsystemcharwidth.pas @@ -79,7 +79,7 @@ var {$endif} begin inherited DoGetPhysicalCharWidths(Line, LineLen, Index, PWidths); - if not IsUtf8 then + if (not IsUtf8) or (not FHandleOwner.HandleAllocated) then exit; {$IFDEF Windows}