Skip to content

Commit

Permalink
Draw augmentation dots close to the first note
Browse files Browse the repository at this point in the history
* Fixes #3573
* Test suite evaluated locally
  • Loading branch information
lpugin committed Sep 24, 2024
1 parent 7ae36a9 commit 1d70c50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/view_element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,13 +792,13 @@ void View::DrawDot(DeviceContext *dc, LayerElement *element, Layer *layer, Staff
int y = element->GetDrawingY();

if (m_doc->GetType() != Transcription) {
// Use the note to which the points to for position
if (dot->m_drawingPreviousElement && !dot->m_drawingNextElement) {
// Use the note to which the points to for position if no next element or for augmentation dots
if (dot->m_drawingPreviousElement && (!dot->m_drawingNextElement || dot->GetForm() == dotLog_FORM_aug)) {
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) {
else 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);
Expand Down

0 comments on commit 1d70c50

Please sign in to comment.