Skip to content

Commit

Permalink
apply patch from mloskot (from #1249)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9197 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 27, 2008
1 parent 2e39c73 commit 96933dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/plugins/ogr_converter/dialog.cpp
Expand Up @@ -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 )
Expand Down
5 changes: 1 addition & 4 deletions src/plugins/ogr_converter/translator.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 96933dd

Please sign in to comment.