mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Fixed compile problem under Qt 3.1.2 related to GDAL driver detection code. Qt 3.1.2 does not support the case sensitive argument to QString::startsWith and QString::endsWith
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@860 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
afb7044aa8
commit
b751be01bb
@ -697,7 +697,10 @@ static bool isSupportedRasterDriver_(QString const &driverName)
|
||||
// whereby GDAL slightly changes driver description string case,
|
||||
// in which case we'd catch it here. Not that that would likely
|
||||
// happen, but if it does, we'll already compensate.
|
||||
if ( driverName.startsWith(supportedRasterFormats_[i], false) )
|
||||
// GS - At Qt 3.1.2, the case sensitive argument. So we change the
|
||||
// driverName to lower case before testing
|
||||
QString format = supportedRasterFormats_[i];
|
||||
if ( driverName.lower().startsWith(format.lower()) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user