mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Clear song before loading
This commit is contained in:
parent
c964bb0b00
commit
d5af21ff96
|
@ -264,6 +264,7 @@ struct VLRepeat {
|
|||
struct VLSong {
|
||||
VLSong(bool initialize = true);
|
||||
void swap(VLSong & other);
|
||||
void clear();
|
||||
|
||||
std::vector<VLProperties> fProperties;
|
||||
std::vector<VLMeasure> fMeasures;
|
||||
|
|
|
@ -679,6 +679,8 @@ int8_t sStepToPitch[] = {
|
|||
|
||||
- (BOOL)readFromXMLData:(NSData *)data error:(NSError **)outError
|
||||
{
|
||||
song->clear();
|
||||
|
||||
NSXMLDocument * doc = [[NSXMLDocument alloc] initWithData:data
|
||||
options:0
|
||||
error:outError];
|
||||
|
|
Loading…
Reference in New Issue
Block a user