mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 18:50:56 +08:00
Fixed reading of configuration from 3MF broken
with e947a29fc88f098febd2d93a8d9acf8ccedd4229
This commit is contained in:
parent
bcad6a251d
commit
8e28ca6f4a
@ -659,8 +659,9 @@ ConfigSubstitutions ConfigBase::load_from_ini_string_commented(std::string &&dat
|
||||
// Consume LF.
|
||||
assert(data[i] == '\n');
|
||||
// Don't keep empty lines.
|
||||
if (j != 0 && data[j] != '\n')
|
||||
data[j ++] = data[i ++];
|
||||
if (j > 0 && data[j - 1] != '\n')
|
||||
data[j ++] = data[i];
|
||||
++ i;
|
||||
}
|
||||
// Skip all leading spaces;
|
||||
for (; i < data.size() && (data[i] == ' ' || data[i] == '\t'); ++ i) ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user