From d827621913d44004b6780721d427044ecdaa8866 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Sun, 1 Oct 2023 18:40:32 +0200 Subject: [PATCH] Additional fixes to rpt position --- src/view_element.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/view_element.cpp b/src/view_element.cpp index e35009ed723..b579be46fea 100644 --- a/src/view_element.cpp +++ b/src/view_element.cpp @@ -2031,10 +2031,10 @@ void View::DrawMRptPart(DeviceContext *dc, int xCentered, char32_t rptGlyph, int TextExtend extend; const std::u32string figures = this->IntToTimeSigFigures(num); dc->GetSmuflTextExtent(figures, &extend); - const int symHeight = m_doc->GetGlyphHeight(rptGlyph, staffSize, false); + const int symHeight = m_doc->GetGlyphHeight(rptGlyph, staffNotationSize, false); const int yNum = (y > ySymbol + symHeight / 2) - ? staff->GetDrawingY() + m_doc->GetDrawingUnit(staffSize) + extend.m_height / 2 - : ySymbol + 3 * m_doc->GetDrawingUnit(staffSize) + extend.m_height / 2; + ? staff->GetDrawingY() + m_doc->GetDrawingUnit(staffNotationSize) + extend.m_height / 2 + : ySymbol + 3 * m_doc->GetDrawingUnit(staffNotationSize) + extend.m_height / 2; dc->DrawMusicText(figures, ToDeviceContextX(xCentered - extend.m_width / 2), ToDeviceContextY(yNum)); dc->ResetFont(); }