Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Style Dock] Use readStyle for undo
  • Loading branch information
NathanW2 committed May 10, 2016
1 parent 1b63602 commit d278b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmapstylingwidget.cpp
Expand Up @@ -210,13 +210,13 @@ QgsMapLayerStyleCommand::QgsMapLayerStyleCommand( QgsMapLayer *layer, const QDom
void QgsMapLayerStyleCommand::undo()
{
QString error;
mLayer->readSymbology( mLastState, error );
mLayer->readStyle( mLastState, error );
mLayer->triggerRepaint();
}

void QgsMapLayerStyleCommand::redo()
{
QString error;
mLayer->readSymbology( mXml, error );
mLayer->readStyle( mXml, error );
mLayer->triggerRepaint();
}

0 comments on commit d278b95

Please sign in to comment.