diff options
| author | Martin Owens <doctormo@gmail.com> | 2018-10-04 13:00:31 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2018-10-05 22:03:39 +0000 |
| commit | 93bd83b73e292ef37d8c4f03e5a9185f870bb0df (patch) | |
| tree | 8ab42f5a785a01fbe4d700613f655372f26d10b6 /src/object/sp-mesh-array.cpp | |
| parent | fix 1795942 "object to path" uses outdated state (diff) | |
| download | inkscape-93bd83b73e292ef37d8c4f03e5a9185f870bb0df.tar.gz inkscape-93bd83b73e292ef37d8c4f03e5a9185f870bb0df.zip | |
Removal of code but breaks gradients
Diffstat (limited to 'src/object/sp-mesh-array.cpp')
| -rw-r--r-- | src/object/sp-mesh-array.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } } } |
