diff options
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 2a50eb6329b7..f4d85d734526 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1952,8 +1952,13 @@ bool BorderColorStatus::statusChanged( const css::frame::FeatureStateEvent& rEve else { css::table::BorderLine2 aTable; - if ( rEvent.IsEnabled && ( rEvent.State >>= aTable ) ) - aColor = Color(aTable.Color); + if ( rEvent.IsEnabled ) + rEvent.State >>= aTable; + + SvxBorderLine aLine; + SvxBoxItem::LineToSvxLine( aTable, aLine, false ); + if ( !aLine.isEmpty() ) + aColor = aLine.GetColor(); if ( rEvent.FeatureURL.Complete == ".uno:BorderTLBR" ) { |