mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
apply patch from mloskot (from #1249)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9197 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
2e39c73394
commit
96933dd6c9
@ -138,10 +138,7 @@ namespace qgis
|
||||
QStringList drvDstList;
|
||||
QString drvName;
|
||||
|
||||
if ( 0 >= OGRGetDriverCount() )
|
||||
{
|
||||
QgsApplication::registerOgrDrivers();
|
||||
}
|
||||
QgsApplication::registerOgrDrivers();
|
||||
int const drvCount = OGRGetDriverCount();
|
||||
|
||||
for ( int i = 0; i < drvCount; ++i )
|
||||
|
@ -316,10 +316,7 @@ namespace qgis
|
||||
|
||||
OGRSFDriverH Translator::findDriver( QString const& name )
|
||||
{
|
||||
if ( OGRGetDriverCount() <= 0 )
|
||||
{
|
||||
QgsApplication::registerOgrDrivers();
|
||||
}
|
||||
QgsApplication::registerOgrDrivers();
|
||||
int const drvCount = OGRGetDriverCount();
|
||||
|
||||
OGRSFDriverH drv = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user