Skip to content

Commit

Permalink
Merge branch 'develop' into develop-humdrum
Browse files Browse the repository at this point in the history
  • Loading branch information
craigsapp committed Oct 2, 2023
2 parents 2f10876 + 27dc692 commit dc0ce11
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/view_element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,15 +828,21 @@ void View::DrawDot(DeviceContext *dc, LayerElement *element, Layer *layer, Staff
if (dot->m_drawingPreviousElement && !dot->m_drawingNextElement) {
x += m_doc->GetDrawingUnit(staff->m_drawingStaffSize) * 7 / 2;
y = dot->m_drawingPreviousElement->GetDrawingY();
this->DrawDotsPart(dc, x, y, 1, staff);
}
if (dot->m_drawingPreviousElement && dot->m_drawingNextElement) {
// Do not take into account the spacing since it is place in-between
dc->DeactivateGraphicX();
x += ((dot->m_drawingNextElement->GetDrawingX() - dot->m_drawingPreviousElement->GetDrawingX()) / 2);
x += dot->m_drawingPreviousElement->GetDrawingRadius(m_doc);
y = dot->m_drawingPreviousElement->GetDrawingY();
this->DrawDotsPart(dc, x, y, 1, staff);
dc->ReactivateGraphic();
}
}

this->DrawDotsPart(dc, x, y, 1, staff);
else {
this->DrawDotsPart(dc, x, y, 1, staff);
}
}

dc->EndGraphic(element, this);
Expand Down Expand Up @@ -2022,7 +2028,8 @@ void View::DrawMRptPart(DeviceContext *dc, int xCentered, char32_t rptGlyph, int
if (line) {
const int yBottom = y - (staff->m_drawingLines - 1) * m_doc->GetDrawingDoubleUnit(staffSize);
const int offset = (y == ySymbol) ? m_doc->GetDrawingDoubleUnit(staffSize) : 0;
this->DrawVerticalLine(dc, y + offset, yBottom - offset, xCentered, m_doc->GetDrawingBarLineWidth(staffNotationSize));
this->DrawVerticalLine(
dc, y + offset, yBottom - offset, xCentered, m_doc->GetDrawingBarLineWidth(staffNotationSize));
}

if (num > 0) {
Expand Down

0 comments on commit dc0ce11

Please sign in to comment.