Skip to content

Commit 29b72b4

Browse files
author
jef
committed
apply patch from mloskot (from #1249)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9197 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e3cfb78 commit 29b72b4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/plugins/ogr_converter/dialog.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ namespace qgis
138138
QStringList drvDstList;
139139
QString drvName;
140140

141-
if ( 0 >= OGRGetDriverCount() )
142-
{
143-
QgsApplication::registerOgrDrivers();
144-
}
141+
QgsApplication::registerOgrDrivers();
145142
int const drvCount = OGRGetDriverCount();
146143

147144
for ( int i = 0; i < drvCount; ++i )

src/plugins/ogr_converter/translator.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,7 @@ namespace qgis
316316

317317
OGRSFDriverH Translator::findDriver( QString const& name )
318318
{
319-
if ( OGRGetDriverCount() <= 0 )
320-
{
321-
QgsApplication::registerOgrDrivers();
322-
}
319+
QgsApplication::registerOgrDrivers();
323320
int const drvCount = OGRGetDriverCount();
324321

325322
OGRSFDriverH drv = 0;

0 commit comments

Comments
 (0)