Jaime van Kessel 9 years ago
parent
commit
33c69b32f8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugins/LayerView/LayerView.py

+ 2 - 0
plugins/LayerView/LayerView.py

@@ -39,6 +39,8 @@ class LayerView(View):
                         element_counts = layer_data.getElementCounts()
                         for layer, counts in element_counts.items():
                             end += sum(counts)
+                            ## Hack to ensure the end is correct. Not quite sure what causes this
+                            end += 2 * len(counts)
 
                             if layer >= end_layer:
                                 break