Skip to content

Commit

Permalink
Don't crash when trying to sync raster layer for offline editing
Browse files Browse the repository at this point in the history
Fix #14848
  • Loading branch information
m-kuhn committed May 23, 2016
1 parent 2f5c3a5 commit 3fcd1fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsofflineediting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 3fcd1fd

@elpaso
Copy link
Contributor

@elpaso elpaso commented on 3fcd1fd May 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've forgot that check.

Please sign in to comment.