Kaydet (Commit) 26bd210c authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: ooo#34420-1.sxi concealed divide by zero

on this and about 30 other documents where the NaN result is cast back to a
long, giving rise to an assert in vcl/source/outdev/map.cxx:391 of

long int ImplLogicToPixel(long int, long int, long int, long int, long int):
Assertion `std::abs(n) < std::numeric_limits<long>::max() / nMapNum / nDPI'
failed.

Change-Id: Ia87e4ee6bbf0f10b7eba513e9a5ba3c42440d181
üst ca36f09c
......@@ -1723,8 +1723,11 @@ IMPL_LINK(OutlineView, PaintingFirstLineHdl, PaintFirstLineInfo*, pInfo)
Size aOutSize( 2000, nBulletHeight );
const float fImageHeight = ((float)aOutSize.Height() * (float)4) / (float)7;
const float fImageRatio = (float)aImageSize.Height() / (float)aImageSize.Width();
aImageSize.Width() = (long)( fImageRatio * fImageHeight );
if (aImageSize.Width() != 0)
{
const float fImageRatio = (float)aImageSize.Height() / (float)aImageSize.Width();
aImageSize.Width() = (long)( fImageRatio * fImageHeight );
}
aImageSize.Height() = (long)( fImageHeight );
Point aImagePos( pInfo->mrStartPos );
......
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