Browse Source

Fix for checkbox tooltip

Filip Sykala - NTB T15p 1 year ago
parent
commit
163f81f1d4
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp

+ 1 - 2
src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp

@@ -2863,7 +2863,6 @@ bool GLGizmoEmboss::revertible(const std::string &name,
     else
     else
         ImGuiWrapper::text(name);
         ImGuiWrapper::text(name);
 
 
-    bool result = draw();
     // render revert changes button
     // render revert changes button
     if (changed) {
     if (changed) {
         ImGuiWindow *window = ImGui::GetCurrentWindow();
         ImGuiWindow *window = ImGui::GetCurrentWindow();
@@ -2876,7 +2875,7 @@ bool GLGizmoEmboss::revertible(const std::string &name,
             ImGui::SetTooltip("%s", undo_tooltip.c_str());
             ImGui::SetTooltip("%s", undo_tooltip.c_str());
         window->DC.CursorPosPrevLine.x = prev_x; // set back previous position
         window->DC.CursorPosPrevLine.x = prev_x; // set back previous position
     }
     }
-    return result;
+    return draw();
 }
 }