Skip to content
Permalink
Browse files

Don't crash when trying to sync raster layer for offline editing

Fix #14848
  • Loading branch information
m-kuhn committed May 23, 2016
1 parent 2f5c3a5 commit 3fcd1fd6a9b954cf15240a89b451f42b5e46f6cd
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsofflineediting.cpp
@@ -106,6 +106,8 @@ bool QgsOfflineEditing::convertToOfflineProject( const QString& offlineDataPath,
{
QgsMapLayer* layer = QgsMapLayerRegistry::instance()->mapLayer( layerIds.at( i ) );
QgsVectorLayer* vl = qobject_cast<QgsVectorLayer*>( layer );
if ( !vl )
continue;
QgsVectorJoinList joins = vl->vectorJoins();

// Layer names will be appended an _offline suffix

1 comment on commit 3fcd1fd

@elpaso

This comment has been minimized.

Copy link
Contributor

@elpaso elpaso commented on 3fcd1fd May 23, 2016

Thanks! I've forgot that check.

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