mirror of
https://github.com/microtherion/VocalEasel.git
synced 2025-01-12 05:04:00 +00:00
Fix bugs with selection
This commit is contained in:
parent
1ef77bfd96
commit
1ae5e20426
|
@ -628,7 +628,7 @@ const char * sBreak[3] = {"", "\xE2\xA4\xBE", "\xE2\x8E\x98"};
|
|||
// on top.
|
||||
//
|
||||
if (fSelEnd != kNoMeasure && fSelStart <= fSelEnd
|
||||
&& fLayout->FirstMeasure(system+1) > fSelStart-(fSelStart==fSelEnd)
|
||||
&& fLayout->FirstMeasure(system+1)+(fSelStart==fSelEnd) > fSelStart
|
||||
&& fLayout->FirstMeasure(system) < fSelEnd+(fSelStart==fSelEnd)
|
||||
)
|
||||
[self highlightSelectionForSystem:system];
|
||||
|
|
|
@ -41,7 +41,9 @@
|
|||
{
|
||||
fView = view;
|
||||
fAnchor = anchor;
|
||||
[fView selectMeasure:fAnchor to:fAnchor];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[fView selectMeasure:fAnchor to:fAnchor];
|
||||
});
|
||||
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user