tdf#91725: Use lighter default colour for minor grid lines

Change-Id: I4be2adac1004ad4ace474c9a271cf8e21986da07
Reviewed-on: https://gerrit.libreoffice.org/16819
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 701e21b25dda87a3f1feca1137c6ceab8a5363ab)
Signed-off-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/chart2/source/inc/LinePropertiesHelper.hxx b/chart2/source/inc/LinePropertiesHelper.hxx
index c765cd1..a5fd2b93 100644
--- a/chart2/source/inc/LinePropertiesHelper.hxx
+++ b/chart2/source/inc/LinePropertiesHelper.hxx
@@ -56,6 +56,8 @@ namespace LinePropertiesHelper
        ::com::sun::star::beans::XPropertySet >& xLineProperties );
    void SetLineInvisible( const ::com::sun::star::uno::Reference<
        ::com::sun::star::beans::XPropertySet >& xLineProperties );
    void SetLineColor( const ::com::sun::star::uno::Reference<
        ::com::sun::star::beans::XPropertySet >& xGridProperties, sal_Int32 nColor  );
}

} //  namespace chart
diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx
index b187dd3..7fcaaec 100644
--- a/chart2/source/model/main/Axis.cxx
+++ b/chart2/source/model/main/Axis.cxx
@@ -436,6 +436,7 @@ void Axis::AllocateSubGrids()
            {
                m_aSubGridProperties[ i ] = new GridProperties();
                LinePropertiesHelper::SetLineInvisible( m_aSubGridProperties[ i ] );
                LinePropertiesHelper::SetLineColor( m_aSubGridProperties[ i ], static_cast<sal_Int32>(0xdddddd) ); //gray2
                aNewBroadcasters.push_back( m_aSubGridProperties[ i ] );
            }
        }
diff --git a/chart2/source/tools/LinePropertiesHelper.cxx b/chart2/source/tools/LinePropertiesHelper.cxx
index 8ec3a58..41aa01d 100644
--- a/chart2/source/tools/LinePropertiesHelper.cxx
+++ b/chart2/source/tools/LinePropertiesHelper.cxx
@@ -168,6 +168,23 @@ void LinePropertiesHelper::SetLineInvisible( const ::com::sun::star::uno::Refere
    }
}

void LinePropertiesHelper::SetLineColor( const ::com::sun::star::uno::Reference<
     ::com::sun::star::beans::XPropertySet >& xLineProperties, sal_Int32 nColor  )
{
    try
    {
        if( xLineProperties.is() )
        {
            xLineProperties->setPropertyValue( "LineColor", uno::makeAny( nColor ) );
        }
    }
    catch( const uno::Exception & ex )
    {
        ASSERT_EXCEPTION( ex );
    }
}


} //  namespace chart

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */