Skip to content

Commit

Permalink
[composer] Don't default to showing grid when opening 2.0 projects
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 22, 2014
1 parent befe56f commit 58d25ef
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions src/core/composer/qgscomposition.cpp
Expand Up @@ -603,22 +603,9 @@ bool QgsComposition::readXML( const QDomElement& compositionElem, const QDomDocu
}

//snapping
if ( compositionElem.attribute( "snapping" ) == "0" )
{
mSnapToGrid = false;
}
else
{
mSnapToGrid = true;
}
if ( compositionElem.attribute( "gridVisible" ) == "0" )
{
mGridVisible = false;
}
else
{
mGridVisible = true;
}
mSnapToGrid = compositionElem.attribute( "snapping", "0" ).toInt() == 0 ? false : true;
mGridVisible = compositionElem.attribute( "gridVisible", "0" ).toInt() == 0 ? false : true;

mSnapGridResolution = compositionElem.attribute( "snapGridResolution" ).toDouble();
mSnapGridTolerance = compositionElem.attribute( "snapGridTolerance", "2.0" ).toDouble();
mSnapGridOffsetX = compositionElem.attribute( "snapGridOffsetX" ).toDouble();
Expand Down

0 comments on commit 58d25ef

Please sign in to comment.