mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 15:22:21 +00:00
Fix typo again
This commit is contained in:
@@ -1902,7 +1902,7 @@ void ImGuiWrapper::search_list(const ImVec2& size_, bool (*items_getter)(int, co
|
|||||||
scroll_up();
|
scroll_up();
|
||||||
else {
|
else {
|
||||||
if (hovered_id > 0)
|
if (hovered_id > 0)
|
||||||
-hovered_id;
|
--hovered_id;
|
||||||
scroll_y(hovered_id);
|
scroll_y(hovered_id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -2293,7 +2293,7 @@ std::string ImGuiWrapper::trunc(const std::string &text,
|
|||||||
} else {
|
} else {
|
||||||
// decrease letter count
|
// decrease letter count
|
||||||
while (count_letter > 1) {
|
while (count_letter > 1) {
|
||||||
-count_letter;
|
--count_letter;
|
||||||
result_text = text_.substr(0, count_letter);
|
result_text = text_.substr(0, count_letter);
|
||||||
text_width = calc_text_size(result_text).x;
|
text_width = calc_text_size(result_text).x;
|
||||||
if (text_width < allowed_width) break;
|
if (text_width < allowed_width) break;
|
||||||
|
|||||||
@@ -866,7 +866,7 @@ void Sidebar::priv::flush_printer_sync(bool restart)
|
|||||||
}
|
}
|
||||||
//btn_sync_printer->SetBackgroundColorNormal((*counter_sync_printer & 1) ? "#F8F8F8" :"#009688");
|
//btn_sync_printer->SetBackgroundColorNormal((*counter_sync_printer & 1) ? "#F8F8F8" :"#009688");
|
||||||
m_printer_bbl_sync->SetBitmap_((*counter_sync_printer & 1) ? "printer_sync_not" : "printer_sync_ok");
|
m_printer_bbl_sync->SetBitmap_((*counter_sync_printer & 1) ? "printer_sync_not" : "printer_sync_ok");
|
||||||
if (-*counter_sync_printer <= 0)
|
if (--*counter_sync_printer <= 0)
|
||||||
timer_sync_printer->Stop();
|
timer_sync_printer->Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1307,7 +1307,7 @@ ExtruderGroup::ExtruderGroup(wxWindow * parent, int index, wxString const &title
|
|||||||
btn_up->SetBackgroundColour(*wxWHITE);
|
btn_up->SetBackgroundColour(*wxWHITE);
|
||||||
btn_up->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this, index](auto &evt) {
|
btn_up->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this, index](auto &evt) {
|
||||||
if (page_cur > 0)
|
if (page_cur > 0)
|
||||||
-page_cur;
|
--page_cur;
|
||||||
update_ams();
|
update_ams();
|
||||||
});
|
});
|
||||||
btn_up->Hide();
|
btn_up->Hide();
|
||||||
@@ -1376,7 +1376,7 @@ void ExtruderGroup::update_ams()
|
|||||||
ams[index]->Refresh();
|
ams[index]->Refresh();
|
||||||
ams[index]->Open();
|
ams[index]->Open();
|
||||||
}
|
}
|
||||||
for (size_t i = i1; i < ams_n1 && left > 0; ++i, ++index, -left) {
|
for (size_t i = i1; i < ams_n1 && left > 0; ++i, ++index, --left) {
|
||||||
ams[index]->Update(i < ams_1.size() ? ams_1[i] : info1);
|
ams[index]->Update(i < ams_1.size() ? ams_1[i] : info1);
|
||||||
ams[index]->Refresh();
|
ams[index]->Refresh();
|
||||||
ams[index]->Open();
|
ams[index]->Open();
|
||||||
@@ -4519,7 +4519,7 @@ void Sidebar::sync_ams_list(bool is_from_big_sync_btn)
|
|||||||
|
|
||||||
for (size_t i = 0; i < merge_info.merges.size(); i++) {
|
for (size_t i = 0; i < merge_info.merges.size(); i++) {
|
||||||
auto& cur = merge_info.merges[i];
|
auto& cur = merge_info.merges[i];
|
||||||
for (int j = cur.size() -1; j >= 1 ; j-) {
|
for (int j = cur.size() -1; j >= 1 ; j--) {
|
||||||
auto last_index = cur[j];
|
auto last_index = cur[j];
|
||||||
change_filament(last_index, cur[0]);
|
change_filament(last_index, cur[0]);
|
||||||
cur.erase(cur.begin() + j);
|
cur.erase(cur.begin() + j);
|
||||||
@@ -12615,7 +12615,7 @@ void Plater::priv::undo()
|
|||||||
const std::vector<UndoRedo::Snapshot> &snapshots = this->undo_redo_stack().snapshots();
|
const std::vector<UndoRedo::Snapshot> &snapshots = this->undo_redo_stack().snapshots();
|
||||||
auto it_current = std::lower_bound(snapshots.begin(), snapshots.end(), UndoRedo::Snapshot(this->undo_redo_stack().active_snapshot_time()));
|
auto it_current = std::lower_bound(snapshots.begin(), snapshots.end(), UndoRedo::Snapshot(this->undo_redo_stack().active_snapshot_time()));
|
||||||
// BBS: undo-redo until modify record
|
// BBS: undo-redo until modify record
|
||||||
while (-it_current != snapshots.begin() && !snapshot_modifies_project(*it_current));
|
while (--it_current != snapshots.begin() && !snapshot_modifies_project(*it_current));
|
||||||
if (it_current == snapshots.begin()) return;
|
if (it_current == snapshots.begin()) return;
|
||||||
if (get_current_canvas3D()->get_canvas_type() == GLCanvas3D::CanvasAssembleView) {
|
if (get_current_canvas3D()->get_canvas_type() == GLCanvas3D::CanvasAssembleView) {
|
||||||
if (it_current->snapshot_data.snapshot_type != UndoRedo::SnapshotType::GizmoAction &&
|
if (it_current->snapshot_data.snapshot_type != UndoRedo::SnapshotType::GizmoAction &&
|
||||||
@@ -12635,7 +12635,7 @@ void Plater::priv::redo()
|
|||||||
while (it_current != snapshots.end() && !snapshot_modifies_project(*it_current++));
|
while (it_current != snapshots.end() && !snapshot_modifies_project(*it_current++));
|
||||||
if (it_current != snapshots.end()) {
|
if (it_current != snapshots.end()) {
|
||||||
while (it_current != snapshots.end() && !snapshot_modifies_project(*it_current++));
|
while (it_current != snapshots.end() && !snapshot_modifies_project(*it_current++));
|
||||||
this->undo_redo_to(-it_current);
|
this->undo_redo_to(--it_current);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user