Kaydet (Commit) 38e5169d authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#3823 Integer-overflow

Change-Id: Idb8ba0972dbfe2cf6ec43caef9b6984851f8f7ca
Reviewed-on: https://gerrit.libreoffice.org/43878Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 8b2ec094
......@@ -488,7 +488,7 @@ namespace emfio
break;
}
}
return Size( FRound( fWidth ), FRound( fHeight ) );
return Size(basegfx::fround(fWidth), basegfx::fround(fHeight));
}
else
return Size();
......@@ -1975,10 +1975,10 @@ namespace emfio
}
}
void MtfTools::ScaleDevExt( double fX, double fY )
void MtfTools::ScaleDevExt(double fX, double fY)
{
mnDevWidth = FRound( mnDevWidth * fX );
mnDevHeight = FRound( mnDevHeight * fY );
mnDevWidth = basegfx::fround(mnDevWidth * fX);
mnDevHeight = basegfx::fround(mnDevHeight * fY);
}
void MtfTools::SetWinOrg( const Point& rPoint , bool bIsEMF)
......@@ -2033,10 +2033,10 @@ namespace emfio
}
}
void MtfTools::ScaleWinExt( double fX, double fY )
void MtfTools::ScaleWinExt(double fX, double fY)
{
mnWinExtX = FRound( mnWinExtX * fX );
mnWinExtY = FRound( mnWinExtY * fY );
mnWinExtX = basegfx::fround(mnWinExtX * fX);
mnWinExtY = basegfx::fround(mnWinExtY * fY);
}
void MtfTools::SetrclBounds( const tools::Rectangle& rRect )
......
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