From 5d4ca9a590c2f1a5c502e1635ed28f147184bdc9 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sat, 28 Aug 2021 13:06:25 +0200 Subject: [PATCH] Fixing MySQL number rounding issue --- src/backend/model/threading/MetadataLoader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/model/threading/MetadataLoader.ts b/src/backend/model/threading/MetadataLoader.ts index 76fdf253..ab794f1f 100644 --- a/src/backend/model/threading/MetadataLoader.ts +++ b/src/backend/model/threading/MetadataLoader.ts @@ -290,8 +290,8 @@ export class MetadataLoader { continue; } // convert center base box to corner based box - box.left = Math.max(0, box.left - box.width / 2); - box.top = Math.max(0, box.top - box.height / 2); + box.left = Math.round(Math.max(0, box.left - box.width / 2)); + box.top = Math.round(Math.max(0, box.top - box.height / 2)); faces.push({name, box}); } }