diff --git a/RevisionHistory.html b/RevisionHistory.html
index 7c683d0a..bc2bef41 100644
--- a/RevisionHistory.html
+++ b/RevisionHistory.html
@@ -10,7 +10,7 @@
DFTFringe Version History
- - Version 8.3.0
+ - Version 8.3.1
- Auto-invert feature (and dialog) only applies to wavefronts created form igram, not those loaded from file, simulated, averaged, subtracted, etc.
- Contourview display is always perfectly square
@@ -19,12 +19,13 @@ DFTFringe Version History
- Fixed crash in "show statistics"
- Disabled dark mode on windows
- Updated dependencies versions
+ - Configuration Preferences look cleaner and some spellings fixed
- Changes to profile plot:
- Some features moved to context menu (right click menu)
- Selecting multiple wavefronts on right show their corresponding profiles
- - New average feature that uses all data (not just 16 diameters)
-
-
- Ability to create wavefront based on average profile
-
+
- New average feature that uses all data (not just 16 diameters)
+ - Ability to create wavefront based on average profile
- Corrected bugs with percentages, inches, mm
- Select multiple wavefronts and right click to see multiple Ronchi view
- Multi Ronchi view lets you compare Ronchi's
diff --git a/percentcorrectiondlg.cpp b/percentcorrectiondlg.cpp
index f079c3eb..20816d84 100644
--- a/percentcorrectiondlg.cpp
+++ b/percentcorrectiondlg.cpp
@@ -54,6 +54,8 @@ percentCorrectionDlg::percentCorrectionDlg( QWidget *parent) :
sizes << 500 << 100;
ui->splitter->setSizes(sizes);
m_number_of_zones = set.value("percent number of zones", 5).toInt();
+ if (m_number_of_zones <= 0)
+ m_number_of_zones = 5;
m_exclusionRadius = ui->exclusionRadius->value();
ui->numberOfZones->blockSignals(true);
ui->numberOfZones->setValue(m_number_of_zones);
@@ -105,11 +107,13 @@ QList percentCorrectionDlg::generateZoneCenters(double radius, int numbe
QJsonObject jsonData=doc.object();
QJsonArray zones = jsonData["zones"].toArray();
- m_number_of_zones = zones.size();
- ui->numberOfZones->blockSignals(true);
- ui->numberOfZones->setValue(m_number_of_zones);
- ui->numberOfZones->blockSignals(false);
- return m_zoneCenters;
+ if (zones.size() > 0) {
+ m_number_of_zones = zones.size();
+ ui->numberOfZones->blockSignals(true);
+ ui->numberOfZones->setValue(m_number_of_zones);
+ ui->numberOfZones->blockSignals(false);
+ return m_zoneCenters;
+ }
}
}