Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-06-13 17:18:39 +0300
committerYuSanka <yusanka@gmail.com>2019-06-13 17:18:39 +0300
commit7da9d2f66d8eab91c924b543ac13d28cb926bf50 (patch)
tree0f45c678dc16c6f82cac34f1e89fbc2ac0e30d8d /src/slic3r/GUI/Selection.cpp
parent86e7a07dd8130462771d91540cc3daa6e0a8bc9c (diff)
parent821ca0e36a4d85d19ca01b404967f53672b5625f (diff)
Merge remote-tracking branch 'origin/master' into ys_new_features
Diffstat (limited to 'src/slic3r/GUI/Selection.cpp')
-rw-r--r--src/slic3r/GUI/Selection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Selection.cpp b/src/slic3r/GUI/Selection.cpp
index 0f364f8a1..402b4248f 100644
--- a/src/slic3r/GUI/Selection.cpp
+++ b/src/slic3r/GUI/Selection.cpp
@@ -296,6 +296,9 @@ void Selection::clear()
if (!m_valid)
return;
+ if (m_list.empty())
+ return;
+
for (unsigned int i : m_list)
{
(*m_volumes)[i]->selected = false;