From a77cb754bfdfe386cd92ea83636da8a02a44f9b8 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Sun, 9 Jan 2022 15:39:35 -0500 Subject: [PATCH] More minor vertical adjustments to Qt piano roll text placement. --- src/drivers/Qt/TasEditor/TasEditorWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index 58895dfd..6362d959 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -4302,7 +4302,7 @@ void QPianoRoll::calcFontData(void) pxLineSpacing = metrics.lineSpacing() * 1.25; pxLineLead = pxLineSpacing - metrics.height(); pxCursorHeight = metrics.height(); - pxLineTextOfs = pxLineSpacing - ((pxLineSpacing - pxCharHeight) / 2) + 1; + pxLineTextOfs = pxLineSpacing - ((pxLineSpacing - pxCharHeight) / 2) + (pxLineSpacing - pxCharHeight + 1) % 2;; //printf("W:%i H:%i LS:%i \n", pxCharWidth, pxCharHeight, pxLineSpacing );