mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-04 02:20:38 +08:00
Fix
../src/libslic3r/Emboss.cpp:1984:9: warning: unused variable 'line_height' [-Wunused-variable] ../src/libslic3r/Emboss.cpp:1986:9: warning: unused variable 'center_line' [-Wunused-variable] ../src/slic3r/GUI/TextLines.cpp:197:16: warning: unused variable 'distance' [-Wunused-variable]
This commit is contained in:
parent
719e8a2899
commit
a482635f3e
@ -1980,11 +1980,7 @@ void align_shape(std::vector<ExPolygons> &shapes, const std::wstring &text, cons
|
||||
line_bb.merge(get_extents(shapes[j]));
|
||||
return line_bb;
|
||||
};
|
||||
|
||||
int line_height = get_line_height(font, prop);
|
||||
unsigned count_lines = get_count_lines(text);
|
||||
int center_line = get_font_info(font, prop).ascent * ASCENT_CENTER;
|
||||
|
||||
int y_offset = get_align_y_offset(prop.align.second, count_lines, font, prop);
|
||||
|
||||
// Speed up for left aligned text
|
||||
|
@ -194,7 +194,8 @@ TextLines select_closest_contour(const std::vector<Polygons> &line_contours) {
|
||||
|
||||
size_t line_idx;
|
||||
Vec2d hit_point;
|
||||
double distance = AABBTreeLines::squared_distance_to_indexed_lines(linesf, tree, zero, line_idx, hit_point);
|
||||
// double distance =
|
||||
AABBTreeLines::squared_distance_to_indexed_lines(linesf, tree, zero, line_idx, hit_point);
|
||||
|
||||
// conversion between index of point and expolygon
|
||||
ExPolygonsIndices cvt(expolygons);
|
||||
|
Loading…
x
Reference in New Issue
Block a user