diff options
author | Rishabh Kumar <kris.kr296@gmail.com> | 2016-05-26 19:27:43 +0530 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-05-26 16:38:14 +0000 |
commit | 3b9cf275138199c3f03ec1d331dfa4e8fb3500bd (patch) | |
tree | 90507d87a9cb493907623b1fcb0c3120a0fddc6e /cui | |
parent | 7417311fc0f888223ae05f1cfc750de1735c5c9e (diff) |
Update CMYK color field correctly
Change-Id: I90f19aa33d619d2177d81376bcdfac13d45e0ca9
Reviewed-on: https://gerrit.libreoffice.org/25324
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tpcolor.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx index de4366432e8b..8384d3e89a4d 100644 --- a/cui/source/tabpages/tpcolor.cxx +++ b/cui/source/tabpages/tpcolor.cxx @@ -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 |