sw/source/core/text/txtdrop.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c172eb71bbd725d6ddca9255a288c47534bb9113 Author: Julien Nabet <serval2...@yahoo.fr> Date: Fri May 23 22:55:41 2014 +0200 Resolves: fdo#79139 Crash in SwDropCapCache::CalcFontSize Minimum of nMaxFontHeight must be at least 1 Cherry-picked from 06afd4067f7bc321d7dd0a4e8c235b0b21e3d49a Change-Id: I35462fc069c7026958e597c2e0605345ed009c91 Reviewed-on: https://gerrit.libreoffice.org/9457 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/text/txtdrop.cxx b/sw/source/core/text/txtdrop.cxx index 98556aa..563a1ff 100644 --- a/sw/source/core/text/txtdrop.cxx +++ b/sw/source/core/text/txtdrop.cxx @@ -703,7 +703,7 @@ void SwDropCapCache::CalcFontSize( SwDropPortion* pDrop, SwTxtFormatInfo &rInf ) long nWishedHeight = pDrop->GetDropHeight(); // find out biggest font size for initial scaling factor - long nMaxFontHeight = 0; + long nMaxFontHeight = 1; while ( pCurrPart ) { const SwFont& rFnt = pCurrPart->GetFont();
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits