Skip to content
Permalink
Browse files

Fix build

  • Loading branch information
nyalldawson committed Mar 25, 2021
1 parent 41053cc commit 2bf6c0adc303160900fdd6da06162b342344dd0d
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/core/qgstemporalutils.cpp
@@ -368,13 +368,13 @@ QgsTimeDuration QgsTimeDuration::fromString( const QString &string, bool &ok )
if ( match.hasMatch() )
{
ok = true;
duration.years = match.capturedView( 1 ).toInt();
duration.months = match.capturedView( 2 ).toInt();
duration.weeks = match.capturedView( 3 ).toInt();
duration.days = match.capturedView( 4 ).toInt();
duration.hours = match.capturedView( 5 ).toInt();
duration.minutes = match.capturedView( 6 ).toInt();
duration.seconds = match.capturedView( 7 ).toDouble();
duration.years = match.captured( 1 ).toInt();
duration.months = match.captured( 2 ).toInt();
duration.weeks = match.captured( 3 ).toInt();
duration.days = match.captured( 4 ).toInt();
duration.hours = match.captured( 5 ).toInt();
duration.minutes = match.captured( 6 ).toInt();
duration.seconds = match.captured( 7 ).toDouble();
}
return duration;
}

0 comments on commit 2bf6c0a

Please sign in to comment.