Skip to content
Permalink
Browse files

Minimum year possible in layout map item temporal extent should be 1

  • Loading branch information
nirvn committed Jun 30, 2020
1 parent 2ed914f commit 4f04fbc129eb0bd470ca4c9bd3951bd6f4bb2072
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/layout/qgslayoutmapwidget.cpp
@@ -89,6 +89,8 @@ QgsLayoutMapWidget::QgsLayoutMapWidget( QgsLayoutItemMap *item, QgsMapCanvas *ma
connect( mStartDateTime, &QDateTimeEdit::dateTimeChanged, this, &QgsLayoutMapWidget::updateTemporalExtent );
connect( mEndDateTime, &QDateTimeEdit::dateTimeChanged, this, &QgsLayoutMapWidget::updateTemporalExtent );

mStartDateTime->setDateTimeRange( QDateTime( QDate( 1, 1, 1 ) ), mStartDateTime->maximumDateTime() );
mEndDateTime->setDateTimeRange( QDateTime( QDate( 1, 1, 1 ) ), mStartDateTime->maximumDateTime() );
mStartDateTime->setDisplayFormat( "yyyy-MM-dd HH:mm:ss" );
mEndDateTime->setDisplayFormat( "yyyy-MM-dd HH:mm:ss" );

0 comments on commit 4f04fbc

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