#i109771# no black borders around symbols + #i74910# very thick borders protrude over the legend
This commit is contained in:
parent
7bdab0997a
commit
65b6070a18
3 changed files with 15 additions and 5 deletions
|
@ -595,7 +595,7 @@ void makeLinesThickOrThin( const Reference< beans::XPropertySet > & xSeriesPrope
|
|||
if( !xSeriesProperties.is() )
|
||||
return;
|
||||
|
||||
sal_Int32 nNewValue = bThick ? 88 : 0;
|
||||
sal_Int32 nNewValue = bThick ? 80 : 0;
|
||||
sal_Int32 nOldValue = 0;
|
||||
if( (xSeriesProperties->getPropertyValue( C2U( "LineWidth" )) >>= nOldValue ) &&
|
||||
nOldValue != nNewValue )
|
||||
|
|
|
@ -734,10 +734,10 @@ double VDataSeries::getYMeanValue() const
|
|||
{
|
||||
if( xProp->getPropertyValue( C2U( "Symbol" ) ) >>= *apSymbolProps )
|
||||
{
|
||||
// border of symbols always black
|
||||
apSymbolProps->BorderColor = 0x000000;
|
||||
//use main color to fill symbols
|
||||
xProp->getPropertyValue( C2U( "Color" ) ) >>= apSymbolProps->FillColor;
|
||||
// border of symbols always same as fill color
|
||||
apSymbolProps->BorderColor = apSymbolProps->FillColor;
|
||||
}
|
||||
else
|
||||
apSymbolProps.reset();
|
||||
|
|
|
@ -85,6 +85,16 @@ void lcl_setPropetiesToShape(
|
|||
::chart::tNameSequence aPropNames;
|
||||
::chart::tAnySequence aPropValues;
|
||||
::chart::PropertyMapper::getMultiPropertyListsFromValueMap( aPropNames, aPropValues, aValueMap );
|
||||
|
||||
uno::Any* pLineWidthAny = ::chart::PropertyMapper::getValuePointer(aPropValues,aPropNames,C2U("LineWidth"));
|
||||
sal_Int32 nLineWidth = 0;
|
||||
if( pLineWidthAny && (*pLineWidthAny>>=nLineWidth) )
|
||||
{
|
||||
const sal_Int32 nMaxLineWidthForLegend = 50;/*1/100 mm*///todo: make this dependent from legend entry height
|
||||
if( nLineWidth>nMaxLineWidthForLegend )
|
||||
*pLineWidthAny = uno::makeAny( nMaxLineWidthForLegend );
|
||||
}
|
||||
|
||||
::chart::PropertyMapper::setMultiProperties( aPropNames, aPropValues, xShapeProp );
|
||||
}
|
||||
}
|
||||
|
@ -316,10 +326,10 @@ Reference< drawing::XShape > VLegendSymbolFactory::createSymbol(
|
|||
ShapeFactory aFactory( xShapeFactory );
|
||||
if( aSymbol.Style == chart2::SymbolStyle_STANDARD )
|
||||
{
|
||||
// border of symbols always black
|
||||
aSymbol.BorderColor = 0x000000;
|
||||
// take series color as fill color
|
||||
xLegendEntryProperties->getPropertyValue( C2U("Color")) >>= aSymbol.FillColor;
|
||||
// border of symbols always same as fill color
|
||||
aSymbol.BorderColor = aSymbol.FillColor;
|
||||
|
||||
xSymbol.set( aFactory.createSymbol2D(
|
||||
xResultGroup,
|
||||
|
|
Loading…
Reference in a new issue