From: Chris C. <ca...@al...> - 2002-03-29 14:52:26
|
Richard Bown wrote: > Ok, that's done. Now I can't work out why if you add two tempo > changes and undo one of them it undoes both and then crashes? Ah yes. I can't answer that directly, but there's clearly a problem if you add two tempo changes at the same position in time -- the second replaces the first, but undoing the second doesn't restore the first. I guess you need to check whether there's a tempo change at exactly that position (rather than, for example, finding the nearest one) before adding the new one. There's a similar problem with time signatures, so I'll sort that out (and add the return value from Composition::addTempo that I seem to have forgotten) and then you take a look again, I guess. btw, you keep checking your .ui files in with absolute file paths in them pointing at your own personal development directory. I keep having to fix them. Chris |