[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Denemo-devel] Wrong display on pasting into different clef
From: |
Richard Shann |
Subject: |
[Denemo-devel] Wrong display on pasting into different clef |
Date: |
Sat, 26 Sep 2009 10:23:40 +0100 |
When you paste a note from an area with one clef into an area with
another the display is wrong. I have (at last) tracked down why.
There are fields highesty and lowesty which cache the y-positions of the
notes in a chord they are calculated thus:
if (mid_c_offset > ((chord *) thechord->object)->highestpitch)
{
((chord *) thechord->object)->highestpitch = mid_c_offset;
((chord *) thechord->object)->highesty =
calculateheight (mid_c_offset, dclef);
}
this calculation however is not repeated on pasting chords, so the draw
routines draw them in the wrong places.
I'll look into fixing this
Richard
- [Denemo-devel] Wrong display on pasting into different clef,
Richard Shann <=