diff --git a/src/slic3r/GUI/DoubleSlider.cpp b/src/slic3r/GUI/DoubleSlider.cpp index d2f0e89aa0..760f5fe0a3 100644 --- a/src/slic3r/GUI/DoubleSlider.cpp +++ b/src/slic3r/GUI/DoubleSlider.cpp @@ -1084,7 +1084,7 @@ void Control::Ruler::update(const std::vector& values, double scroll_ste { if (!m_parent || values.empty() || // check if need to update ruler in respect to input values - values.front() == m_min_val && values.back() == m_max_val && m_scroll_step == scroll_step && max_values.size() == m_max_values_cnt) + (values.front() == m_min_val && values.back() == m_max_val && m_scroll_step == scroll_step && max_values.size() == m_max_values_cnt)) return; m_min_val = values.front(); diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index 4c1ad0acfb..5886be0284 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -530,9 +530,6 @@ wxExecuteEnv get_appimage_exec_env() } // namespace void desktop_execute(const char* argv[]) { - if (sizeof(argv) == 0) - return; - // Check if we're running in an AppImage container, if so, we need to remove AppImage's env vars, // because they may mess up the environment expected by the file manager. // Mostly this is about LD_LIBRARY_PATH, but we remove a few more too for good measure. diff --git a/src/slic3r/GUI/UpdateDialogs.cpp b/src/slic3r/GUI/UpdateDialogs.cpp index 0441e866f3..e8edd57988 100644 --- a/src/slic3r/GUI/UpdateDialogs.cpp +++ b/src/slic3r/GUI/UpdateDialogs.cpp @@ -207,7 +207,7 @@ bool AppUpdateDownloadDialog::run_after_download() const boost::filesystem::path AppUpdateDownloadDialog::get_download_path() const { - return std::move(boost::filesystem::path(txtctrl_path->GetValue().ToUTF8().data())); + return boost::filesystem::path(txtctrl_path->GetValue().ToUTF8().data()); } // MsgUpdateConfig