Skip to content
Permalink
Browse files

[Style Dock] Use readStyle for undo

  • Loading branch information
NathanW2 committed May 10, 2016
1 parent 1b63602 commit d278b95906305aa2fe346177b31516914ca5ae5a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsmapstylingwidget.cpp
@@ -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.
You can’t perform that action at this time.