Skip to content

Commit c776746

Browse files
3nidsnyalldawson
authored andcommittedSep 14, 2018
fix offline editing
1 parent 97376b8 commit c776746

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/core/qgsofflineediting.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,11 +969,12 @@ void QgsOfflineEditing::copySymbology( QgsVectorLayer *sourceLayer, QgsVectorLay
969969
QString error;
970970
QDomDocument doc;
971971
QgsReadWriteContext context;
972-
sourceLayer->exportNamedStyle( doc, error, context );
972+
QgsMapLayer::StyleCategories categories = static_cast<QgsMapLayer::StyleCategories>( QgsMapLayer::AllStyleCategories ) & ~QgsMapLayer::CustomProperties;
973+
sourceLayer->exportNamedStyle( doc, error, context, categories );
973974

974975
if ( error.isEmpty() )
975976
{
976-
targetLayer->importNamedStyle( doc, error );
977+
targetLayer->importNamedStyle( doc, error, categories );
977978
}
978979
if ( !error.isEmpty() )
979980
{

0 commit comments

Comments
 (0)
Please sign in to comment.