Add simple implementation of FILL_T::FILLED_WITH_COLOR for SVG plotter (custom color is ignored at this point)

This commit is contained in:
Jonathan Haas 2021-12-15 11:18:39 +01:00 committed by Jeff Young
parent e2fc105201
commit 24472ff9e3
1 changed files with 3 additions and 8 deletions

View File

@ -238,10 +238,8 @@ void SVG_PLOTTER::setSVGPlotStyle( bool aIsGroup, const std::string& aExtraStyle
{
case FILL_T::NO_FILL: fputs( "fill-opacity:0.0; ", m_outputFile ); break;
case FILL_T::FILLED_SHAPE: fputs( "fill-opacity:1.0; ", m_outputFile ); break;
case FILL_T::FILLED_WITH_BG_BODYCOLOR: fputs( "fill-opacity:0.6; ", m_outputFile ); break;
case FILL_T::FILLED_WITH_COLOR:
UNIMPLEMENTED_FOR( "FILLED_WITH_COLOR" );
break;
case FILL_T::FILLED_WITH_BG_BODYCOLOR:
case FILL_T::FILLED_WITH_COLOR: fputs( "fill-opacity:0.6; ", m_outputFile ); break;
}
double pen_w = userToDeviceSize( GetCurrentLineWidth() );
@ -576,11 +574,8 @@ void SVG_PLOTTER::PlotPoly( const std::vector<wxPoint>& aCornerList, FILL_T aFil
case FILL_T::FILLED_WITH_BG_BODYCOLOR:
case FILL_T::FILLED_SHAPE:
setSVGPlotStyle( false, "fill-rule:evenodd;" );
break;
case FILL_T::FILLED_WITH_COLOR:
wxFAIL_MSG( "FILLED_WITH_COLOR not implemented" );
setSVGPlotStyle( false, "fill-rule:evenodd;" );
break;
}