fixes for pedal line editing

Two bugs fixed involving editing of pedal lines:

35621 - endpoint doesn't stop at notes in voices > 1
30796 - endpoint jumps to left when editing pedal line that extends to end of score