Skip to content
Permalink
Browse files

fix build

  • Loading branch information
alexbruy committed Apr 13, 2016
1 parent ca9f267 commit 2572d18147bfafad28de6aa912ee53c5ed02b6f6
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgsvectorlayerproperties.cpp
@@ -660,14 +660,14 @@ void QgsVectorLayerProperties::onCancel()
layer->setSubsetString( mOriginalSubsetSQL );
}

if ( mOldStyle.xmlData() != mLayer->styleManager()->style( mLayer->styleManager()->currentStyle() ).xmlData() )
if ( mOldStyle.xmlData() != layer->styleManager()->style( layer->styleManager()->currentStyle() ).xmlData() )
{
// need to reset style to previous - style applied directly to the layer (not in apply())
QString myMessage;
QDomDocument doc( "qgis" );
int errorLine, errorColumn;
doc.setContent( mOldStyle.xmlData(), false, &myMessage, &errorLine, &errorColumn );
mLayer->importNamedStyle( doc, myMessage );
layer->importNamedStyle( doc, myMessage );
syncToLayer();
}
}
@@ -836,7 +836,7 @@ void QgsVectorLayerProperties::loadStyle_clicked()
return;
}

mOldStyle = mLayer->styleManager()->style( mLayer->styleManager()->currentStyle() );
mOldStyle = layer->styleManager()->style( layer->styleManager()->currentStyle() );

QString myMessage;
bool defaultLoadedFlag = false;

0 comments on commit 2572d18

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