Skip to content

Commit

Permalink
Fix bad if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
mramato committed Jul 26, 2014
1 parent c1f6b85 commit 5fdee66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Widgets/Timeline/Timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ define([
if (!defined(stopTime)) {
throw new DeveloperError('stopTime is required');
}
if (JulianDate.lessThan(startTime, stopTime)) {
if (JulianDate.lessThanOrEquals(stopTime, startTime)) {
throw new DeveloperError('Start time must come before end time.');
}
//>>includeEnd('debug');
Expand Down

0 comments on commit 5fdee66

Please sign in to comment.