More minor vertical adjustments to Qt piano roll text placement.

This commit is contained in:
mjbudd77 2022-01-09 15:39:35 -05:00
parent 0d84862d93
commit a77cb754bf
1 changed files with 1 additions and 1 deletions

View File

@ -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 );