mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
@@ -659,8 +659,9 @@ ConfigSubstitutions ConfigBase::load_from_ini_string_commented(std::string &&dat
|
|||||||
// Consume LF.
|
// Consume LF.
|
||||||
assert(data[i] == '\n');
|
assert(data[i] == '\n');
|
||||||
// Don't keep empty lines.
|
// Don't keep empty lines.
|
||||||
if (j != 0 && data[j] != '\n')
|
if (j > 0 && data[j - 1] != '\n')
|
||||||
data[j ++] = data[i ++];
|
data[j ++] = data[i];
|
||||||
|
++ i;
|
||||||
}
|
}
|
||||||
// Skip all leading spaces;
|
// Skip all leading spaces;
|
||||||
for (; i < data.size() && (data[i] == ' ' || data[i] == '\t'); ++ i) ;
|
for (; i < data.size() && (data[i] == ' ' || data[i] == '\t'); ++ i) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user