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/gradient-drag.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/gradient-drag.cpp') diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp index b0d330431..d2762f218 100644 --- a/src/gradient-drag.cpp +++ b/src/gradient-drag.cpp @@ -213,12 +213,7 @@ Glib::ustring GrDrag::makeStopSafeColor( gchar const *str, bool &isNull ) SPGradient *vect = grad->getVector(); SPStop *firstStop = (vect) ? vect->getFirstStop() : grad->getFirstStop(); if (firstStop) { - Glib::ustring stopColorStr; - if (firstStop->currentColor) { - stopColorStr = firstStop->getStyleProperty("color", nullptr); - } else { - stopColorStr = firstStop->specified_color.toString(); - } + Glib::ustring stopColorStr = firstStop->getColor().toString(); if ( !stopColorStr.empty() ) { colorStr = stopColorStr; } -- cgit v1.2.3