vcl: make variables const in OutputDevice::AttemptOLEFontScaleFix()
Change-Id: Ifdfebf3244f07e4353c8510d7644f4ec02b2f9a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189696 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
committed by
Michael Weghorn
parent
790d17beb8
commit
d17a8c8ee6
@@ -812,9 +812,9 @@ bool OutputDevice::AttemptOLEFontScaleFix(vcl::Font& rFont, tools::Long nHeight)
|
||||
if (fDenominator == 0.0)
|
||||
return false;
|
||||
const float fNumerator = static_cast<float>(maMapRes.mnMapScNumX) * maMapRes.mnMapScDenomY;
|
||||
float fStretch = fNumerator / fDenominator;
|
||||
int nOrigWidth = mpFontInstance->mxFontMetric->GetWidth();
|
||||
int nNewWidth = static_cast<int>(nOrigWidth * fStretch + 0.5);
|
||||
const float fStretch = fNumerator / fDenominator;
|
||||
const int nOrigWidth = mpFontInstance->mxFontMetric->GetWidth();
|
||||
const int nNewWidth = static_cast<int>(nOrigWidth * fStretch + 0.5);
|
||||
bool bRet = true;
|
||||
if (nNewWidth != nOrigWidth && nNewWidth != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user