diff --git a/qml/DomainGraphLayout.qml b/qml/DomainGraphLayout.qml index 47e7f82d..e0eb7e5b 100644 --- a/qml/DomainGraphLayout.qml +++ b/qml/DomainGraphLayout.qml @@ -170,8 +170,11 @@ Item for (var c = 0; c < topicsList.count; c++) { topicsList.currentIndex = c - listViewHeight = topicsList.currentItem.height - listViewWidth += topicsList.currentItem.width + elements_spacing_ + if (topicsList.currentItem != null) + { + listViewHeight = topicsList.currentItem.height + listViewWidth += topicsList.currentItem.width + elements_spacing_ + } } topicsList.height = listViewHeight topicsList.width = listViewWidth