2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 063265f4 authored by Declara Denis's avatar Declara Denis Committed by Christian Schulte zu Berge
Browse files

Fixed two bugs in GUI

* Fixed out-of bounds warnings, when showing 2D-Textures in Inspector
* Fixed bug introduced in 719004e0 which would crash the application when the
  PipelineTreeWidget had no item selected (e.g. when adding a new Pipeline)
parent fa7e1de7
......@@ -431,7 +431,7 @@ namespace campvis {
}
if (maxSlices == 1)
maxSlices = -1;
maxSlices = 0;
p_currentSlice.setMaxValue(maxSlices - 1);
_texturesDirty = false;
_geometriesDirty = false;
......
......@@ -382,7 +382,8 @@ namespace campvis {
void PipelineTreeWidget::selectionChanged(const QItemSelection& selected, const QItemSelection &deselected) {
QTreeView::selectionChanged(selected, deselected);
QModelIndexList selection = this->selectedIndexes();
emit itemChanged(selection.first());
if (!selection.isEmpty())
emit itemChanged(selection.first());
}
void PipelineTreeWidget::setupWidget() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment