sw/source/core/text/txtdrop.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 06afd4067f7bc321d7dd0a4e8c235b0b21e3d49a 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 Change-Id: I35462fc069c7026958e597c2e0605345ed009c91 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