Skip to content

Commit

Permalink
fix scalar eqn, var handling
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMontag committed Aug 15, 2024
1 parent 9e93e1c commit 6cc8812
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/mii/filterdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ void FilterDialog::setupSymbolDimensions(const QVector<LabelCheckStates>& labels
{
for (int d=0; d<labels.size(); ++d) {
auto dimItem = new FilterTreeItem(QString("Dimension %1").arg(d+1), Qt::Checked, root);
dimItem->setCheckable(false);
root->append(dimItem);
for (auto iter=labels[d].constKeyValueBegin(); iter!=labels[d].constKeyValueEnd(); ++iter) {
auto labelItem = new FilterTreeItem(iter->first, iter->second, dimItem);
Expand Down
4 changes: 2 additions & 2 deletions src/mii/symbolfiltermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ bool SymbolFilterModel::evaluateColumnFilters()
anyVarActive = true;
std::fill(mColumnStates, mColumnStates+mColumns, 1);
// local and global variable label filters are applied
auto indices = skipColumnLabels();
auto indices = variable->isScalar() ? QSet<int>() : skipColumnLabels();
for (auto idx : indices) {
mColumnStates[idx] = 0; // Qt::Unchecked
}
Expand Down Expand Up @@ -164,7 +164,7 @@ bool SymbolFilterModel::evaluateRowFilters()
anyEqnActive = true;
std::fill(mRowStates, mRowStates+mRows, 1);
// local and global equation label filters are applied
auto indices = skipRowLabels();
auto indices = equation->isScalar() ? QSet<int>() : skipRowLabels();
for (auto idx : indices) {
mRowStates[idx] = 0; // Qt::Unchecked
}
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Current GAMS Model Inspector version.
MI_MAJOR_VERSION=0
MI_MINOR_VERSION=5
MI_PATCH_LEVEL= 3
MI_PATCH_LEVEL= 4
VERSION='$$MI_MAJOR_VERSION'.'$$MI_MINOR_VERSION'.'$$MI_PATCH_LEVEL'

# Minimum required GAMS Distribution version, which
Expand Down

0 comments on commit 6cc8812

Please sign in to comment.