mirror of
https://github.com/microtherion/VocalEasel.git
synced 2025-01-12 13:13:59 +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.
|
// on top.
|
||||||
//
|
//
|
||||||
if (fSelEnd != kNoMeasure && fSelStart <= fSelEnd
|
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)
|
&& fLayout->FirstMeasure(system) < fSelEnd+(fSelStart==fSelEnd)
|
||||||
)
|
)
|
||||||
[self highlightSelectionForSystem:system];
|
[self highlightSelectionForSystem:system];
|
||||||
|
|
|
@ -41,7 +41,9 @@
|
||||||
{
|
{
|
||||||
fView = view;
|
fView = view;
|
||||||
fAnchor = anchor;
|
fAnchor = anchor;
|
||||||
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[fView selectMeasure:fAnchor to:fAnchor];
|
[fView selectMeasure:fAnchor to:fAnchor];
|
||||||
|
});
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user