From 33c69b32f81bf63a197a34babebfc0945e194601 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 5 Jun 2015 12:10:13 +0200 Subject: [PATCH] Fix for #29 --- plugins/LayerView/LayerView.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/LayerView/LayerView.py b/plugins/LayerView/LayerView.py index 576feb6cb4..3b6edc195e 100644 --- a/plugins/LayerView/LayerView.py +++ b/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