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}