From 89464d5312051a54e8f5356428153bf98ca46502 Mon Sep 17 00:00:00 2001 From: Boris Sekachev <40690378+bsekachev@users.noreply.github.com> Date: Tue, 7 May 2019 11:35:47 +0300 Subject: [PATCH] Fixed annotation parser for tracks with a start frame less than the first segment frame (#442) * Fixed annotation parser for tracks with a start frame < first segment frame * Changelog --- CHANGELOG.md | 1 + cvat/apps/engine/static/engine/js/annotationParser.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ace89296..89240263 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed incorrect width of shapes borders in some cases +- Fixed annotation parser for tracks with a start frame less than the first segment frame ### Security - diff --git a/cvat/apps/engine/static/engine/js/annotationParser.js b/cvat/apps/engine/static/engine/js/annotationParser.js index 1f0cfc6d..447055c4 100644 --- a/cvat/apps/engine/static/engine/js/annotationParser.js +++ b/cvat/apps/engine/static/engine/js/annotationParser.js @@ -327,7 +327,7 @@ class AnnotationParser { shapes: [], }; - if (path.frame < this._startFrame || path.frame > this._stopFrame) { + if (path.frame > this._stopFrame) { continue; }