#2872 Fix creating range filter slices on LGR

This commit is contained in:
Jacob Støren
2018-05-09 13:47:58 +02:00
parent d6d894f631
commit 83d3a033d8
5 changed files with 18 additions and 6 deletions

View File

@@ -278,14 +278,17 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
QVariantList iSliceList;
iSliceList.push_back(0);
iSliceList.push_back(CVF_MAX(static_cast<int>(i + 1), 1));
iSliceList.push_back(m_currentGridIdx);
QVariantList jSliceList;
jSliceList.push_back(1);
jSliceList.push_back(CVF_MAX(static_cast<int>(j + 1), 1));
jSliceList.push_back(m_currentGridIdx);
QVariantList kSliceList;
kSliceList.push_back(2);
kSliceList.push_back(CVF_MAX(static_cast<int>(k + 1), 1));
kSliceList.push_back(m_currentGridIdx);
menuBuilder.subMenuStart("Range Filter Slice", QIcon(":/CellFilter_Range.png"));