Prevent a divide by zero in CFX_RTFBreak::GetDisplayPos().

BUG=chromium:913557

Change-Id: I3a14271fa5c67685e0454947686feac47e92cee7
Reviewed-on: https://pdfium-review.googlesource.com/c/46990
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/xfa/fgas/layout/cfx_rtfbreak.cpp b/xfa/fgas/layout/cfx_rtfbreak.cpp
index 1f6f6e6..9dce8d7 100644
--- a/xfa/fgas/layout/cfx_rtfbreak.cpp
+++ b/xfa/fgas/layout/cfx_rtfbreak.cpp
@@ -730,6 +730,9 @@
   bool bRTLPiece = FX_IsOdd(pText->iBidiLevel);
   float fFontSize = pText->fFontSize;
   int32_t iFontSize = FXSYS_round(fFontSize * 20.0f);
+  if (iFontSize == 0)
+    return 0;
+
   int32_t iAscent = pFont->GetAscent();
   int32_t iDescent = pFont->GetDescent();
   int32_t iMaxHeight = iAscent - iDescent;