diff options
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 5274eb7b00..2952f714a4 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -44,6 +44,7 @@ ConfigSettings::ConfigSettings() SETTING(infillSpeed, 50); SETTING(infillPattern, INFILL_AUTOMATIC); SETTING(skinSpeed, 50); + SETTING(perimeterBeforeInfill, 0); SETTING(supportType, SUPPORT_TYPE_GRID); SETTING(supportAngle, -1); @@ -199,7 +200,7 @@ bool ConfigSettings::readSettings(const char* path) { if(!config.good()) return false; - while(config.good()) {
+ while(config.good()) { bool multilineContent = false; size_t pos = std::string::npos; std::getline(config, line); @@ -223,7 +224,7 @@ bool ConfigSettings::readSettings(const char* path) { // Are we about to read a multiline string? if(val == CONFIG_MULTILINE_SEPARATOR) { - val = "";
+ val = ""; multilineContent = true; bool done_multiline = false; @@ -245,7 +246,7 @@ bool ConfigSettings::readSettings(const char* path) { // to the parsed value RTRIM_STRING(val); } - else {
+ else { line += "\n"; val += line; } |