Selection::clear_time() should follow the same pattern as Selection::clear_*
i.e. only do something if there was an existing time selection. This also fixes an early-use-bug-crash for _superclock_ticks_per_second
This commit is contained in:
@@ -140,9 +140,12 @@ Selection::clear_objects (bool with_signal)
|
||||
void
|
||||
Selection::clear_time (bool with_signal)
|
||||
{
|
||||
time.clear();
|
||||
if (with_signal) {
|
||||
TimeChanged ();
|
||||
if (!time.empty()) {
|
||||
time.clear();
|
||||
|
||||
if (with_signal) {
|
||||
TimeChanged ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user