Skip to content
Permalink
Browse files

fix offline editing

  • Loading branch information
3nids authored and nyalldawson committed Sep 14, 2018
1 parent 97376b8 commit c776746f9babe5ce12b96ade10cd878d55cd78b2
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/core/qgsofflineediting.cpp
@@ -969,11 +969,12 @@ void QgsOfflineEditing::copySymbology( QgsVectorLayer *sourceLayer, QgsVectorLay
QString error;
QDomDocument doc;
QgsReadWriteContext context;
sourceLayer->exportNamedStyle( doc, error, context );
QgsMapLayer::StyleCategories categories = static_cast<QgsMapLayer::StyleCategories>( QgsMapLayer::AllStyleCategories ) & ~QgsMapLayer::CustomProperties;
sourceLayer->exportNamedStyle( doc, error, context, categories );

if ( error.isEmpty() )
{
targetLayer->importNamedStyle( doc, error );
targetLayer->importNamedStyle( doc, error, categories );
}
if ( !error.isEmpty() )
{

0 comments on commit c776746

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