File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -329,10 +329,14 @@ void QgsProjectProperties::apply()
329
329
snapToList << " to_vertex_and_segment" ;
330
330
}
331
331
}
332
- QgsProject::instance ()->writeEntry (" Digitizing" , " /LayerSnappingList" , layerIdList);
333
- QgsProject::instance ()->writeEntry (" Digitizing" , " /LayerSnapToList" , snapToList);
334
- QgsProject::instance ()->writeEntry (" Digitizing" , " /LayerSnappingToleranceList" , toleranceList);
335
- QgsProject::instance ()->writeEntry (" Digitizing" , " /LayerSnappingEnabledList" , enabledList);
332
+
333
+ if (mSnappingLayerSettings .size () > 0 )
334
+ {
335
+ QgsProject::instance ()->writeEntry (" Digitizing" , " /LayerSnappingList" , layerIdList);
336
+ QgsProject::instance ()->writeEntry (" Digitizing" , " /LayerSnapToList" , snapToList);
337
+ QgsProject::instance ()->writeEntry (" Digitizing" , " /LayerSnappingToleranceList" , toleranceList);
338
+ QgsProject::instance ()->writeEntry (" Digitizing" , " /LayerSnappingEnabledList" , enabledList);
339
+ }
336
340
337
341
// todo XXX set canvas colour
338
342
emit refresh ();
You can’t perform that action at this time.
0 commit comments