diff --git a/MatterControlLib/ApplicationView/SettingsValidation.cs b/MatterControlLib/ApplicationView/SettingsValidation.cs index 41cd420cb..17d96ec30 100644 --- a/MatterControlLib/ApplicationView/SettingsValidation.cs +++ b/MatterControlLib/ApplicationView/SettingsValidation.cs @@ -370,6 +370,34 @@ namespace MatterHackers.MatterControl }); } + if (settings.GetValue(SettingsKey.fill_density) <= 0) + { + errors.Add( + new SettingsValidationError(SettingsKey.fill_density) + { + Error = "{0} should be greater than 0.".Localize().FormatWith( + GetSettingsName(SettingsKey.fill_density)), + ErrorLevel = ValidationErrorLevel.Warning, + ValueDetails = "{0} = {1}".FormatWith( + GetSettingsName(SettingsKey.fill_density), + settings.GetValue(SettingsKey.fill_density)), + }); + } + + if (settings.GetValue(SettingsKey.perimeters) <= 0) + { + errors.Add( + new SettingsValidationError(SettingsKey.perimeters) + { + Error = "{0} should be greater than 0.".Localize().FormatWith( + GetSettingsName(SettingsKey.perimeters)), + ErrorLevel = ValidationErrorLevel.Warning, + ValueDetails = "{0} = {1}".FormatWith( + GetSettingsName(SettingsKey.perimeters), + settings.GetValue(SettingsKey.perimeters)), + }); + } + if (settings.GetValue(SettingsKey.infill_overlap_perimeter) < -settings.GetValue(SettingsKey.nozzle_diameter) || settings.GetValue(SettingsKey.infill_overlap_perimeter) > settings.GetValue(SettingsKey.nozzle_diameter)) { diff --git a/Submodules/MatterSlice b/Submodules/MatterSlice index b35dfe02a..4f71564d2 160000 --- a/Submodules/MatterSlice +++ b/Submodules/MatterSlice @@ -1 +1 @@ -Subproject commit b35dfe02a31e3d3c328ab68ebd4c99f50d7759c7 +Subproject commit 4f71564d218f924f454e5b20c11001f7a1a22d79 diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 55d36cd0c..3901db65a 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 55d36cd0c334d05389b56d65303462bc309ede2b +Subproject commit 3901db65a244d449c0aa33b992184eec62953ae7