diff --git a/svtools/source/table/gridtablerenderer.cxx b/svtools/source/table/gridtablerenderer.cxx index 8a68ccdbba2a..a0bcc2bb30c8 100644 --- a/svtools/source/table/gridtablerenderer.cxx +++ b/svtools/source/table/gridtablerenderer.cxx @@ -309,9 +309,6 @@ namespace svt::table Color backgroundColor = _rStyle.GetFieldColor(); - std::optional const aLineColor( m_pImpl->rModel.getLineColor() ); - Color lineColor = !aLineColor ? _rStyle.GetSeparatorColor() : *aLineColor; - Color const activeSelectionBackColor = lcl_getEffectiveColor(m_pImpl->rModel.getActiveSelectionBackColor(), _rStyle, &StyleSettings::GetHighlightColor); if (_bSelected) @@ -320,8 +317,6 @@ namespace svt::table backgroundColor = i_hasControlFocus ? activeSelectionBackColor : lcl_getEffectiveColor(m_pImpl->rModel.getInactiveSelectionBackColor(), _rStyle, &StyleSettings::GetDeactiveColor); - if (!aLineColor) - lineColor = backgroundColor; } else {