Skip to content
Permalink
Browse files

[composer] Don't default to showing grid when opening 2.0 projects

  • Loading branch information
nyalldawson committed Jan 22, 2014
1 parent befe56f commit 58d25efb4c2a846218326edab8da9654497dd0fd
Showing with 3 additions and 16 deletions.
  1. +3 −16 src/core/composer/qgscomposition.cpp
@@ -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();

0 comments on commit 58d25ef

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