From 24472ff9e3262037edec7dd5f3ea32d0c13023e6 Mon Sep 17 00:00:00 2001 From: Jonathan Haas Date: Wed, 15 Dec 2021 11:18:39 +0100 Subject: [PATCH] Add simple implementation of FILL_T::FILLED_WITH_COLOR for SVG plotter (custom color is ignored at this point) --- common/plotters/SVG_plotter.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/common/plotters/SVG_plotter.cpp b/common/plotters/SVG_plotter.cpp index ae0da370ee..9b18054d99 100644 --- a/common/plotters/SVG_plotter.cpp +++ b/common/plotters/SVG_plotter.cpp @@ -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& 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; }