mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
GCodeViewer slight opitmization: reuse (move) G-code line indices
in G-code viewer.
This commit is contained in:
parent
5a95794913
commit
880feb3a3d
5 changed files with 8 additions and 11 deletions
|
@ -702,7 +702,7 @@ public:
|
|||
public:
|
||||
GCodeWindow() = default;
|
||||
~GCodeWindow() { stop_mapping_file(); }
|
||||
void load_gcode(const std::string& filename, const std::vector<size_t> &lines_ends);
|
||||
void load_gcode(const std::string& filename, std::vector<size_t> &&lines_ends);
|
||||
void reset() {
|
||||
stop_mapping_file();
|
||||
m_lines_ends.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue