Kaydet (Commit) 3b9cf275 authored tarafından Rishabh Kumar's avatar Rishabh Kumar Kaydeden (comit) Katarina Behrens

Update CMYK color field correctly

Change-Id: I90f19aa33d619d2177d81376bcdfac13d45e0ca9
Reviewed-on: https://gerrit.libreoffice.org/25324Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 7417311f
......@@ -835,7 +835,6 @@ IMPL_LINK_NOARG_TYPED(SvxColorTabPage, ClickWorkOnHdl_Impl, Button*, void)
if( pColorDlg->Execute() == RET_OK )
{
sal_uInt16 nK = 0;
Color aPreviewColor = pColorDlg->GetColor();
aCurrentColor = aPreviewColor;
if (eCM != CM_RGB)
......@@ -844,7 +843,7 @@ IMPL_LINK_NOARG_TYPED(SvxColorTabPage, ClickWorkOnHdl_Impl, Button*, void)
m_pC->SetValue( ColorToPercent_Impl( aCurrentColor.GetRed() ) );
m_pY->SetValue( ColorToPercent_Impl( aCurrentColor.GetGreen() ) );
m_pM->SetValue( ColorToPercent_Impl( aCurrentColor.GetBlue() ) );
m_pK->SetValue( ColorToPercent_Impl( nK ) );
m_pK->SetValue( ColorToPercent_Impl( aCurrentColor.GetTransparency() ) );
ConvertColorValues (aCurrentColor, CM_RGB);
}
else
......
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