Skip to content

Commit

Permalink
fix temporal xml for layout map
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Apr 16, 2020
1 parent cac80de commit 147a44b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/3d/qgslayoutitem3dmap.cpp
Expand Up @@ -209,7 +209,7 @@ bool QgsLayoutItem3DMap::writePropertiesToElement( QDomElement &element, QDomDoc

//temporal settings
QDomElement elemTemporal = document.createElement( QStringLiteral( "temporal-settings" ) );
elemTemporal.setAttribute( QStringLiteral( "isTemporal" ), isTemporal() ? 0 : 1 );
elemTemporal.setAttribute( QStringLiteral( "isTemporal" ), isTemporal() ? 1 : 0 );
if ( isTemporal() )
{
elemTemporal.setAttribute( QStringLiteral( "temporalRangeBegin" ), temporalRange().begin().toString( Qt::ISODate ) );
Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitemmap.cpp
Expand Up @@ -650,7 +650,7 @@ bool QgsLayoutItemMap::writePropertiesToElement( QDomElement &mapElem, QDomDocum
mapElem.appendChild( labelBlockingItemsElem );

//temporal settings
mapElem.setAttribute( QStringLiteral( "isTemporal" ), isTemporal() ? 0 : 1 );
mapElem.setAttribute( QStringLiteral( "isTemporal" ), isTemporal() ? 1 : 0 );
if ( isTemporal() )
{
mapElem.setAttribute( QStringLiteral( "temporalRangeBegin" ), temporalRange().begin().toString( Qt::ISODate ) );
Expand Down

0 comments on commit 147a44b

Please sign in to comment.