File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
src/plugins/ogr_converter Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,7 @@ namespace qgis
138
138
QStringList drvDstList;
139
139
QString drvName;
140
140
141
- if ( 0 >= OGRGetDriverCount () )
142
- {
143
- QgsApplication::registerOgrDrivers ();
144
- }
141
+ QgsApplication::registerOgrDrivers ();
145
142
int const drvCount = OGRGetDriverCount ();
146
143
147
144
for ( int i = 0 ; i < drvCount; ++i )
Original file line number Diff line number Diff line change @@ -316,10 +316,7 @@ namespace qgis
316
316
317
317
OGRSFDriverH Translator::findDriver ( QString const & name )
318
318
{
319
- if ( OGRGetDriverCount () <= 0 )
320
- {
321
- QgsApplication::registerOgrDrivers ();
322
- }
319
+ QgsApplication::registerOgrDrivers ();
323
320
int const drvCount = OGRGetDriverCount ();
324
321
325
322
OGRSFDriverH drv = 0 ;
You can’t perform that action at this time.
0 commit comments