[QGIS Commit] r9220 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Aug 30 17:58:45 EDT 2008


Author: jef
Date: 2008-08-30 17:58:44 -0400 (Sat, 30 Aug 2008)
New Revision: 9220

Modified:
   trunk/qgis/src/app/qgisapp.cpp
Log:
fix #935

Modified: trunk/qgis/src/app/qgisapp.cpp
===================================================================
--- trunk/qgis/src/app/qgisapp.cpp	2008-08-30 15:20:16 UTC (rev 9219)
+++ trunk/qgis/src/app/qgisapp.cpp	2008-08-30 21:58:44 UTC (rev 9220)
@@ -3300,7 +3300,7 @@
   QgsMapLayer* ok = NULL;
   CPLPushErrorHandler( CPLQuietErrorHandler );
   if ( QgsRasterLayer::isValidRasterFileName( fileName ) )
-    ok = addRasterLayer( fileName, false );
+    ok = addRasterLayer( fileName, fileInfo.completeBaseName() );
   else // nope - try to load it as a shape/ogr
     ok = addVectorLayer( fileName, fileName, "ogr" );
   CPLPopErrorHandler();



More information about the QGIS-commit mailing list