@@ -179,6 +179,18 @@ void QgsContinuousColorRenderer::readXML(const QDomNode& rnode, QgsVectorLayer&
179
179
QDomNode classnode = rnode.namedItem (" classificationfield" );
180
180
int classificationfield = classnode.toElement ().text ().toInt ();
181
181
this ->setClassificationField (classificationfield);
182
+
183
+ // polygon outline
184
+ QDomNode polyoutlinenode = rnode.namedItem (" polygonoutline" );
185
+ QString polyoutline = polyoutlinenode.toElement ().text ();
186
+ if (polyoutline == " 0" )
187
+ {
188
+ mDrawPolygonOutline = false ;
189
+ }
190
+ else if (polyoutline == " 1" )
191
+ {
192
+ mDrawPolygonOutline = true ;
193
+ }
182
194
183
195
// read the settings for the renderitem of the minimum value
184
196
QDomNode lowernode = rnode.namedItem (" lowestsymbol" );
@@ -222,6 +234,14 @@ bool QgsContinuousColorRenderer::writeXML( QDomNode & layer_node, QDomDocument &
222
234
QDomText classificationfieldtxt=document.createTextNode (QString::number (mClassificationField ));
223
235
classificationfield.appendChild (classificationfieldtxt);
224
236
continuoussymbol.appendChild (classificationfield);
237
+
238
+ // polygon outlines
239
+ QDomElement drawPolygonOutlines = document.createElement (" polygonoutline" );
240
+ int drawPolyInt = mDrawPolygonOutline ? 1 : 0 ;
241
+ QDomText drawPolygonText = document.createTextNode (QString::number (drawPolyInt));
242
+ drawPolygonOutlines.appendChild (drawPolygonText);
243
+ continuoussymbol.appendChild (drawPolygonOutlines);
244
+
225
245
QDomElement lowestsymbol=document.createElement (" lowestsymbol" );
226
246
continuoussymbol.appendChild (lowestsymbol);
227
247
if (mMinimumSymbol )
0 commit comments