| 1 | /* DurationTierArea.cpp |
| 2 | * |
| 3 | * Copyright (C) 1992-2012,2014-2016,2018,2020,2022 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #include "DurationTierArea.h" |
| 20 | |
| 21 | Thing_implement (DurationTierArea, RealTierArea, 0); |
| 22 | |
| 23 | #include "Prefs_define.h" |
| 24 | #include "DurationTierArea_prefs.h" |
| 25 | #include "Prefs_install.h" |
| 26 | #include "DurationTierArea_prefs.h" |
| 27 | #include "Prefs_copyToInstance.h" |
| 28 | #include "DurationTierArea_prefs.h" |
| 29 | |
| 30 | void structDurationTierArea :: v9_repairPreferences () { |
| 31 | if (our instancePref_dataFreeMinimum() > 1.0) |
| 32 | our setInstancePref_dataFreeMinimum (Melder_atof (our default_dataFreeMinimum())); |
| 33 | if (our instancePref_dataFreeMaximum() < 1.0) |
| 34 | our setInstancePref_dataFreeMaximum (Melder_atof (our default_dataFreeMaximum())); |
| 35 | Melder_assert (our instancePref_dataFreeMinimum() < our instancePref_dataFreeMaximum()); |
| 36 | DurationTierArea_Parent :: v9_repairPreferences (); |
| 37 | } |
| 38 | |
| 39 | /* End of file DurationTierArea.cpp */ |