From 8173cad9367499a65a3edcef0891518e0e2d5f45 Mon Sep 17 00:00:00 2001
From: Robin Tissot <tissotrobin@gmail.com>
Date: Thu, 17 Dec 2020 19:03:06 +0100
Subject: [PATCH] Fixes upside down lines in transcription modal.

---
 app/apps/core/static/js/edit/components/trans_modal.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/apps/core/static/js/edit/components/trans_modal.js b/app/apps/core/static/js/edit/components/trans_modal.js
index 3dfae055..ec2ab8d9 100644
--- a/app/apps/core/static/js/edit/components/trans_modal.js
+++ b/app/apps/core/static/js/edit/components/trans_modal.js
@@ -107,7 +107,7 @@ const TranscriptionModal = Vue.component('transcriptionmodal', {
             tmppoly.setAttributeNS(null, 'fill', 'red');
 
             // calculate rotation needed to get the line horizontal
-            let target_angle = READ_DIRECTION == 'rtl' ? 180 : 0;
+            let target_angle = 0;  // all lines should be topologically ltr
             let angle = target_angle - this.getLineAngle();
 
             // apply it to the polygon and get the resulting bbox
-- 
GitLab