Skip to content
Permalink
Browse files

Merge pull request #695 from minorua/defproj

fTools: remove lines that cause error with non-ascii path
  • Loading branch information
m-kuhn committed Jul 4, 2013
2 parents c3143e6 + 7221c73 commit b7d707697c90505f29ee9c4758f6340e21295fe3
Showing with 0 additions and 3 deletions.
  1. +0 −3 python/plugins/fTools/tools/doDefineProj.py
@@ -118,12 +118,10 @@ def accept(self):
inPath = provider.dataSourceUri()
p = re.compile("\|.*")
inPath = p.sub("", inPath)
print "PATH", inPath
self.progressBar.setValue(40)
if inPath.endswith(".shp"):
inPath = inPath[:-4]
self.progressBar.setValue(55)
print "PATH2", inPath
if not srsDefine.isValid():
QMessageBox.information(self, self.tr("Define current projection"), self.tr("Output spatial reference system is not valid"))
else:
@@ -147,7 +145,6 @@ def accept(self):
self.progressBar.setValue(95)
vLayer.setCrs(srsDefine)
self.progressBar.setValue(100)
print "PATH3", inPath
QMessageBox.information(self, self.tr("Define current projection"),
self.tr("Defined Projection For:\n%s.shp") % (inPath) )
self.progressBar.setValue(0)

0 comments on commit b7d7076

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