mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 22:05:56 +08:00
Bugfix: Uninitialized value in wipe tower integration.
Just a small fix to avoid c++ undefined behaviour.
This commit is contained in:
parent
9a68645106
commit
cfb6526732
@ -157,8 +157,11 @@ std::string WipeTowerIntegration::post_process_wipe_tower_moves(const WipeTower:
|
||||
while (line_str >> ch) {
|
||||
if (ch == 'X' || ch == 'Y')
|
||||
line_str >> (ch == 'X' ? pos.x() : pos.y());
|
||||
else if (ch == 'Z')
|
||||
line_str >> *z;
|
||||
else if (ch == 'Z') {
|
||||
float z_value;
|
||||
line_str >> z_value;
|
||||
z = z_value;
|
||||
}
|
||||
else
|
||||
line_out << ch;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user