[QGIS Commit] r8537 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed May 28 15:50:08 EDT 2008


Author: jef
Date: 2008-05-28 15:50:08 -0400 (Wed, 28 May 2008)
New Revision: 8537

Modified:
   trunk/qgis/src/core/qgsapplication.cpp
Log:
remove /bin from application path for MSVC build

Modified: trunk/qgis/src/core/qgsapplication.cpp
===================================================================
--- trunk/qgis/src/core/qgsapplication.cpp	2008-05-28 19:49:14 UTC (rev 8536)
+++ trunk/qgis/src/core/qgsapplication.cpp	2008-05-28 19:50:08 UTC (rev 8537)
@@ -69,6 +69,12 @@
 void QgsApplication::setPrefixPath(const QString thePrefixPath, bool useDefaultPaths)
 {
   mPrefixPath = thePrefixPath;
+#if defined(_MSC_VER)
+  if( mPrefixPath.endsWith("/bin") )
+  {
+    mPrefixPath.chop(4);
+  }
+#endif
   if (useDefaultPaths)
   {
     setPluginPath(mPrefixPath + QDir::separator() + QString(QGIS_PLUGIN_SUBDIR));



More information about the QGIS-commit mailing list