Skip to content

Commit 2b36efb

Browse files
committed
Return the tag itself when add zero to a tag
1 parent a5278e6 commit 2b36efb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/time.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,9 @@ export class Tag {
468468
* @param delay The time interval to add to this time instant.
469469
*/
470470
getLaterTag(delay: TimeValue | undefined): Tag {
471-
if (delay === undefined) {
471+
if (delay === undefined || delay.isZero()) {
472+
// FIXME: Should a tag + zero returns one microstep after the tag?
472473
return this;
473-
} else if (delay.isZero()) {
474-
return new Tag(this.time, this.microstep + 1);
475474
} else {
476475
return new Tag(delay.add(this.time), 0);
477476
}

0 commit comments

Comments
 (0)