Skip to content

Commit

Permalink
[composer] Fix undoing item rotation not applying when item originall…
Browse files Browse the repository at this point in the history
…y had 0 rotation
  • Loading branch information
nyalldawson committed Apr 13, 2014
1 parent 80ab4a2 commit 20bac72
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/composer/qgscomposeritem.cpp
Expand Up @@ -232,10 +232,7 @@ bool QgsComposerItem::_readXML( const QDomElement& itemElem, const QDomDocument&
}

//rotation
if ( itemElem.attribute( "itemRotation", "0" ).toDouble() != 0 )
{
setItemRotation( itemElem.attribute( "itemRotation", "0" ).toDouble() );
}
setItemRotation( itemElem.attribute( "itemRotation", "0" ).toDouble() );

//uuid
mUuid = itemElem.attribute( "uuid", QUuid::createUuid().toString() );
Expand Down

0 comments on commit 20bac72

Please sign in to comment.