Fix path error for bdf creation.

git-svn-id: http://svn.osgeo.org/qgis/trunk@1390 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2004-05-13 09:55:00 +00:00
parent 97eabdfd23
commit b2ff8b7387

View File

@ -27,7 +27,7 @@ DBFHandle WayPointToShape::createDbf (QString theDbfName )
DBFHandle myDbfHandle;
//remove the path part of the dbf name
QFileInfo myFileInfo( theDbfName );
QString myBaseString = myFileInfo.baseName(); // excludes any extension
QString myBaseString = myFileInfo.dirPath()+QString("/")+myFileInfo.baseName(); // excludes any extension
//create the dbf
myDbfHandle = DBFCreate( myBaseString+".dbf" );
//create an index field named after the base part of the file name