[Libreoffice-commits] core.git: cui/source

Noel Grandin noel at peralex.com
Wed Jun 8 11:39:27 UTC 2016


 cui/source/tabpages/tpcolor.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6d78ce11e1215a1c284585b4811aa0eeedd7187c
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Jun 8 13:32:41 2016 +0200

    loplugin:cstylecast
    
    Change-Id: I412f88094269ba111a984b714202b58d96758a20

diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index c3f4a1b..ae40b60 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -689,7 +689,7 @@ IMPL_LINK_TYPED(SvxColorTabPage, ModifiedHdl_Impl, Edit&, rEdit, void)
     {
         // read current MtrFields, if cmyk, then k-value as transparency
         if(&rEdit == m_pHexcustom)
-            aCurrentColor = (Color)m_pHexcustom->GetColor();
+            aCurrentColor = Color(m_pHexcustom->GetColor());
         else
         {
             aCurrentColor.SetColor ( Color( (sal_uInt8)PercentToColor_Impl( (sal_uInt16) m_pRcustom->GetValue() ),


More information about the Libreoffice-commits mailing list