mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 20:05:58 +08:00
* back-slash at end of line in printer settings.../custom g-code does not crash slic3r anymore (issue #4021) * fixes issue #4021
This commit is contained in:
parent
c3e6f398db
commit
84275d08d2
@ -32,6 +32,9 @@ std::string escape_string_cstyle(const std::string &str)
|
|||||||
if (c == '\n' || c == '\r') {
|
if (c == '\n' || c == '\r') {
|
||||||
(*outptr ++) = '\\';
|
(*outptr ++) = '\\';
|
||||||
(*outptr ++) = 'n';
|
(*outptr ++) = 'n';
|
||||||
|
} else if (c == '\\'){
|
||||||
|
(*outptr ++) = '\\';
|
||||||
|
(*outptr ++) = '\\';
|
||||||
} else
|
} else
|
||||||
(*outptr ++) = c;
|
(*outptr ++) = c;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user