From 93bd83b73e292ef37d8c4f03e5a9185f870bb0df Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Thu, 4 Oct 2018 09:00:31 -0400 Subject: Removal of code but breaks gradients --- src/object/sp-mesh-array.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/object/sp-mesh-array.cpp') diff --git a/src/object/sp-mesh-array.cpp b/src/object/sp-mesh-array.cpp index 4815ec5c1..60bd11940 100644 --- a/src/object/sp-mesh-array.cpp +++ b/src/object/sp-mesh-array.cpp @@ -853,8 +853,8 @@ bool SPMeshNodeArray::read( SPMeshGradient *mg_in ) { if( (istop == 0 && irow == 0 && icolumn > 0) || (istop == 1 && irow > 0 ) ) { // skip } else { - SPColor color = stop->getEffectiveColor(); - double opacity = stop->opacity; + SPColor color = stop->getColor(); + double opacity = stop->getOpacity(); new_patch.setColor( istop, color ); new_patch.setOpacity( istop, opacity ); new_patch.setStopPtr( istop, stop ); @@ -1087,7 +1087,7 @@ static SPColor default_color( SPItem *item ) { if ( SP_IS_GRADIENT(server) && SP_GRADIENT(server)->getVector() ) { SPStop *firstStop = SP_GRADIENT(server)->getVector()->getFirstStop(); if ( firstStop ) { - color = firstStop->getEffectiveColor(); + color = firstStop->getColor(); } } } -- cgit v1.2.3