Skip to content
Permalink
Browse files

fix db handling when modifying existing color ramp (#6229)

  • Loading branch information
etiennesky committed Aug 31, 2012
1 parent 4b4ac5a commit 2ab844abf8302a489abe86a25a99b54f49ffd91e
Binary file not shown.
@@ -36,7 +36,7 @@

_colorramp = "CREATE TABLE colorramp("\
"id INTEGER PRIMARY KEY,"\
"name TEXT,"\
"name TEXT UNIQUE,"\
"xml TEXT,"\
"groupid INTEGER)"

@@ -187,8 +187,8 @@ bool QgsStyleV2::addColorRamp( QString name, QgsVectorColorRampV2* colorRamp, bo
if ( !colorRamp || name.isEmpty() )
return false;

// delete previous symbol (if any)
if ( mSymbols.contains( name ) )
// delete previous color ramps (if any)
if ( mColorRamps.contains( name ) )
{
// TODO remove groups and tags?
delete mColorRamps.value( name );

0 comments on commit 2ab844a

Please sign in to comment.
You can’t perform that action at this time.