Localization improvements

This commit is contained in:
YuSanka 2019-12-06 16:20:59 +01:00
parent 6bcfc3fe83
commit 3acbc07caf
2 changed files with 3 additions and 2 deletions

View file

@ -299,7 +299,8 @@ void GLCanvas3D::LayersEditing::render_overlay(const GLCanvas3D& canvas) const
ImGui::SetCursorPosX(text_align);
imgui.text(_(L("Keep min")));
ImGui::SameLine();
ImGui::SetCursorPosX(widget_align);
if (ImGui::GetCursorPosX() < widget_align) // because of line lenght after localization
ImGui::SetCursorPosX(widget_align);
ImGui::PushItemWidth(imgui.get_style_scaling() * 120.0f);
imgui.checkbox("##2", m_smooth_params.keep_min);