[mapguide-commits] r7235 - trunk/MgDev/Common/CoordinateSystem
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Nov 27 07:19:25 PST 2012
Author: baertelchen
Date: 2012-11-27 07:19:25 -0800 (Tue, 27 Nov 2012)
New Revision: 7235
Modified:
trunk/MgDev/Common/CoordinateSystem/CoordSysCatalog.cpp
Log:
Fix MENTOR_USER_DICTIONARY_PATH env variable not honored in Windows (as part of RFC127)
This submission fixes a problem with the MENTOR_USER_DICTIONARY_PATH env variable not being honored under Windows.
The location for user coordinate system definitions defaults to [%APPLOCALDATA%\Autodesk\User Geospatial Coordinate Systems].
This can be overridden by the MENTOR_USER_DICTIONARY_PATH variable. For the #ifdef _WIN32 part of the CCoordinateSystemCatalog::GetDefaultUserDictionaryDir()
method, the string value read from the env variable never got applied, however. The method always returned an empty string in that case.
Note, that this basically had no affect for the server because there the user dictionary path got/can be initialized from the serverconfig.ini file.
Reviewed by Hugues.
Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysCatalog.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysCatalog.cpp 2012-11-27 09:28:57 UTC (rev 7234)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysCatalog.cpp 2012-11-27 15:19:25 UTC (rev 7235)
@@ -414,6 +414,8 @@
defaultUserDir += _T("\\Autodesk\\User Geospatial Coordinate Systems"); //NOXLATE
}
}
+ else
+ defaultUserDir = szPathVar;
if (!defaultUserDir.empty() && L'\\' != defaultUserDir[defaultUserDir.length() - 1])
defaultUserDir.append(L"\\");
@@ -436,7 +438,7 @@
return L"";
- return defaultUserDir.c_str();
+ return defaultUserDir;
}
void CCoordinateSystemCatalog::SetUserDictionaryDir(CREFSTRING sDirPath)
More information about the mapguide-commits
mailing list