From 9359d6d3d0a5f78bc2d05c42c5693725dfe049c4 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 8 Mar 2021 09:01:15 +0100 Subject: [PATCH] Follow-up of 0472c8452588809b382681ef1e418242f41b47e0 - Fixed syntax errors --- src/slic3r/GUI/GCodeViewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index de17a4d8e..4c934624d 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -461,7 +461,7 @@ void GCodeViewer::SequentialView::GCodeWindow::render(float top, float bottom, u *const_cast*>(&m_lines) = update_lines(start_id, end_id); #endif // ENABLE_GCODE_WINDOW_USE_MAPPED_FILE *const_cast(&m_selected_line_id) = curr_line_id; - *const_cast(&m_last_lines_size) = static_cast(m_lines.size()); + *const_cast(&m_last_lines_size) = m_lines.size(); } // line number's column width @@ -477,7 +477,7 @@ void GCodeViewer::SequentialView::GCodeWindow::render(float top, float bottom, u // center the text in the window by pushing down the first line const float f_lines_count = static_cast(lines_count); - ImGui::SetCursorPosY({ 0.5f * (wnd_height - f_lines_count * text_height - (f_lines_count - 1.0f) * style.ItemSpacing.y) }); + ImGui::SetCursorPosY(0.5f * (wnd_height - f_lines_count * text_height - (f_lines_count - 1.0f) * style.ItemSpacing.y)); // render text lines for (uint64_t id = start_id; id <= end_id; ++id) {