Kaydet (Commit) 06afd406 authored tarafından Julien Nabet's avatar Julien Nabet

Resolves: fdo#79139 Crash in SwDropCapCache::CalcFontSize

Minimum of nMaxFontHeight must be at least 1

Change-Id: I35462fc069c7026958e597c2e0605345ed009c91
üst b36ccf58
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment