summaryrefslogtreecommitdiffstats
path: root/src/sp-stop.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2010-07-18 09:12:32 +0000
committerJon A. Cruz <jon@joncruz.org>2010-07-18 09:12:32 +0000
commit463ed7ef1dcec505209b51b42dd0e9f4f734938a (patch)
tree4ff6b4a5c1aa815507f941aaef2633a0a6ba541d /src/sp-stop.cpp
parentCorrect default for save-as location. Fixes bug #561375. (diff)
downloadinkscape-463ed7ef1dcec505209b51b42dd0e9f4f734938a.tar.gz
inkscape-463ed7ef1dcec505209b51b42dd0e9f4f734938a.zip
Follow-up to complete fix for gradient stops and icc.
(bzr r9606.1.12)
Diffstat (limited to 'src/sp-stop.cpp')
-rw-r--r--src/sp-stop.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp-stop.cpp b/src/sp-stop.cpp
index 031c6a3ea..71f937927 100644
--- a/src/sp-stop.cpp
+++ b/src/sp-stop.cpp
@@ -55,12 +55,13 @@ SPStop* SPStop::getPrevStop()
SPColor SPStop::readStopColor( Glib::ustring const &styleStr, guint32 dfl )
{
SPColor color(dfl);
- SPStyle style;
+ SPStyle* style = sp_style_new(0);
SPIPaint paint;
- paint.read( styleStr.c_str(), style );
+ paint.read( styleStr.c_str(), *style );
if ( paint.isColor() ) {
color = paint.value.color;
}
+ sp_style_unref(style);
return color;
}