Kaydet (Commit) b55d2772 authored tarafından Andreas Brandner's avatar Andreas Brandner Kaydeden (comit) Thorsten Behrens

tdf#39674 find / fix all German spellings in internal APIs

Change-Id: Idcbfe301c13ffa1260ba3ab0665570db5ccc8112
Reviewed-on: https://gerrit.libreoffice.org/41929Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 4cde2a01
......@@ -722,39 +722,39 @@ void SvxColorTabPage::CmykToRgb_Impl( Color& rColor, const sal_uInt16 nK )
sal_uInt16 SvxColorTabPage::ColorToPercent_Impl( sal_uInt16 nColor )
{
sal_uInt16 nWert = 0;
sal_uInt16 nValue = 0;
switch (eCM)
{
case ColorModel::RGB :
nWert = nColor;
nValue = nColor;
break;
case ColorModel::CMYK:
nWert = (sal_uInt16) ( (double) nColor * 100.0 / 255.0 + 0.5 );
nValue = (sal_uInt16) ( (double) nColor * 100.0 / 255.0 + 0.5 );
break;
}
return nWert;
return nValue;
}
sal_uInt16 SvxColorTabPage::PercentToColor_Impl( sal_uInt16 nPercent )
{
sal_uInt16 nWert = 0;
sal_uInt16 nValue = 0;
switch (eCM)
{
case ColorModel::RGB :
nWert = nPercent;
nValue = nPercent;
break;
case ColorModel::CMYK:
nWert = (sal_uInt16) ( (double) nPercent * 255.0 / 100.0 + 0.5 );
nValue = (sal_uInt16) ( (double) nPercent * 255.0 / 100.0 + 0.5 );
break;
}
return nWert;
return nValue;
}
......
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