mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 08:55:57 +08:00
fix warnings
This commit is contained in:
parent
6a66436858
commit
cb4a52b8f8
@ -311,7 +311,6 @@ void GLGizmoEmboss::on_render() {
|
|||||||
|
|
||||||
if (!m_preview.is_initialized()) return;
|
if (!m_preview.is_initialized()) return;
|
||||||
|
|
||||||
double angle = m_rotate_gizmo.get_angle();
|
|
||||||
glsafe(::glPushMatrix());
|
glsafe(::glPushMatrix());
|
||||||
glsafe(::glMultMatrixd(m_preview_trmat.data()));
|
glsafe(::glMultMatrixd(m_preview_trmat.data()));
|
||||||
auto *contour_shader = wxGetApp().get_shader("mm_contour");
|
auto *contour_shader = wxGetApp().get_shader("mm_contour");
|
||||||
@ -610,7 +609,7 @@ void GLGizmoEmboss::draw_window()
|
|||||||
}
|
}
|
||||||
#endif // ALLOW_DEBUG_MODE
|
#endif // ALLOW_DEBUG_MODE
|
||||||
if (m_font == nullptr) {
|
if (m_font == nullptr) {
|
||||||
ImGui::Text(_u8L("Warning: No font is selected. Select correct one.").c_str());
|
ImGui::Text("%s",_u8L("Warning: No font is selected. Select correct one.").c_str());
|
||||||
}
|
}
|
||||||
draw_font_list();
|
draw_font_list();
|
||||||
draw_text_input();
|
draw_text_input();
|
||||||
@ -953,7 +952,7 @@ void GLGizmoEmboss::draw_font_list()
|
|||||||
FontItem & fi = m_font_list[rename_id];
|
FontItem & fi = m_font_list[rename_id];
|
||||||
std::string rename_popup =
|
std::string rename_popup =
|
||||||
GUI::format(_u8L("Change font name (%1%): "), fi.name);
|
GUI::format(_u8L("Change font name (%1%): "), fi.name);
|
||||||
ImGui::Text(rename_popup.c_str());
|
ImGui::Text("%s", rename_popup.c_str());
|
||||||
ImGui::SetNextItemWidth(m_gui_cfg->combo_font_width);
|
ImGui::SetNextItemWidth(m_gui_cfg->combo_font_width);
|
||||||
if (ImGui::InputText("##font name", &fi.name,
|
if (ImGui::InputText("##font name", &fi.name,
|
||||||
ImGuiInputTextFlags_EnterReturnsTrue) ||
|
ImGuiInputTextFlags_EnterReturnsTrue) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user