Skip to content

Commit

Permalink
fixed overallheight when empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
digao-dalpiaz committed Jul 30, 2020
1 parent 8d7a4fe commit 9b10798
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DzHTMLText.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1870,6 +1870,8 @@ type TSizes = record

if not InFloat then Inc(LineCount);
BreakGroupAndLineCtrl(True, TPoint.Create(FloatRect.Left, Y+Max.LineHeight));
//if line is empty, there is no visual item to check overall height
if Y>Max.OverallHeight then Max.OverallHeight := Y;

if (Z is TPreObj_Break) then
begin
Expand Down

0 comments on commit 9b10798

Please sign in to comment.