mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-14 05:21:51 +08:00
Another tiny change to support non C++11 compiler.
This commit is contained in:
parent
a7c53c7f5f
commit
75ee1baf1d
@ -230,7 +230,7 @@ void SurfaceCollection::export_to_svg(const char *path, bool show_labels)
|
|||||||
for (Surfaces::const_iterator surface = this->surfaces.begin(); surface != this->surfaces.end(); ++surface) {
|
for (Surfaces::const_iterator surface = this->surfaces.begin(); surface != this->surfaces.end(); ++surface) {
|
||||||
svg.draw(surface->expolygon, surface_type_to_color_name(surface->surface_type), transparency);
|
svg.draw(surface->expolygon, surface_type_to_color_name(surface->surface_type), transparency);
|
||||||
if (show_labels) {
|
if (show_labels) {
|
||||||
int idx = int(surface - this->surfaces.cbegin());
|
int idx = int(surface - this->surfaces.begin());
|
||||||
char label[64];
|
char label[64];
|
||||||
sprintf(label, "%d", idx);
|
sprintf(label, "%d", idx);
|
||||||
svg.draw_text(surface->expolygon.contour.points.front(), label, "black");
|
svg.draw_text(surface->expolygon.contour.points.front(), label, "black");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user