diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2019-10-25 09:57:13 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2019-10-25 09:57:13 +0300 |
commit | 982ed95a3560a9e7212efa7c0eaf5f764a2096ea (patch) | |
tree | 8fb09df376d685a54a6e7668618aac9384765f49 /src | |
parent | f7d3cf063bdae284989286ef84e07869c42b9382 (diff) |
ENABLE_THUMBNAIL_GENERATOR -> Save thumbnail size into gcode
Diffstat (limited to 'src')
-rw-r--r-- | src/libslic3r/GCode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 2ea8eae1d..c96468415 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -954,7 +954,7 @@ void GCode::_do_export(Print &print, FILE *file) // Write thumbnail if ((thumbnail_data != nullptr) && thumbnail_data->is_valid()) { - _write(file, "\n;\n; thumbnail begin\n"); + _write_format(file, "\n;\n; thumbnail begin %dx%d\n", thumbnail_data->width, thumbnail_data->height); size_t row_size = 4 * thumbnail_data->width; for (int r = (int)thumbnail_data->height - 1; r >= 0 ; --r) |