Skip to content

Commit 9bea2bc

Browse files
author
cfarmer
committed
removes symbology which may cause problems with new/old symbology
git-svn-id: http://svn.osgeo.org/qgis/trunk@15292 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1fc2bd1 commit 9bea2bc

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

python/plugins/fTools/tools/doMeanCoords.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,8 @@ def accept(self):
6565
self.outShape.clear()
6666
addToTOC = QMessageBox.question(self, self.tr("Coordinate statistics"), self.tr("Created output point shapefile:\n%1\n\nWould you like to add the new layer to the TOC?").arg( outPath ), QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton)
6767
if addToTOC == QMessageBox.Yes:
68-
self.vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr")
69-
if self.vlayer.geometryType() == QGis.Point:
70-
render = QgsSingleSymbolRenderer(QGis.Point)
71-
symbol = QgsSymbol(QGis.Point)
72-
symbol.setFillColor(Qt.red)
73-
symbol.setFillStyle(Qt.SolidPattern)
74-
symbol.setColor(Qt.red)
75-
symbol.setPointSize(5)
76-
render.addSymbol(symbol)
77-
self.vlayer.setRenderer(render)
78-
QgsMapLayerRegistry.instance().addMapLayer(self.vlayer)
68+
vlayer = QgsVectorLayer(outPath, unicode(outName), "ogr")
69+
QgsMapLayerRegistry.instance().addMapLayer(vlayer)
7970
self.progressBar.setValue(0)
8071
self.buttonOk.setEnabled( True )
8172

0 commit comments

Comments
 (0)