[Libreoffice-commits] core.git: sw/source
Julien Nabet
serval2412 at yahoo.fr
Fri May 23 13:58:51 PDT 2014
sw/source/core/text/txtdrop.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 06afd4067f7bc321d7dd0a4e8c235b0b21e3d49a
Author: Julien Nabet <serval2412 at 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();
More information about the Libreoffice-commits
mailing list