Skip to content
Permalink
Browse files

Debugging

  • Loading branch information
nyalldawson committed Jul 24, 2018
1 parent 1a94727 commit 3b47116d8eec4b5225d97f39d2bdffb40e0d7d2c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/providers/wfs/qgswfsshareddata.cpp
@@ -269,6 +269,7 @@ bool QgsWFSSharedData::createCache()
// Copy the temporary database back to disk
vsi_l_offset nLength = 0;
GByte *pabyData = VSIGetMemFileBuffer( vsimemFilename.toStdString().c_str(), &nLength, TRUE );
Q_ASSERT( !QFile::exists( mCacheDbname ) );
VSILFILE *fp = VSIFOpenL( mCacheDbname.toStdString().c_str(), "wb " );
if ( fp )
{
@@ -340,6 +341,7 @@ bool QgsWFSSharedData::createCache()
}

// Copy the in-memory template SpatiaLite DB into the target DB
Q_ASSERT( !QFile::exists( mCacheDbname ) );
QFile dbFile( mCacheDbname );
if ( !dbFile.open( QIODevice::WriteOnly | QIODevice::Truncate ) )
{

0 comments on commit 3b47116

Please sign in to comment.
You can’t perform that action at this time.