Skip to content

Commit

Permalink
Re #4282. Fix for the Table crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Jan 9, 2012
1 parent fbd451f commit 67abb2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/MantidPlot/src/Table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,10 @@ void Table::clearSelection()
tr("Column '%1' is read only!").arg(name));
return;
}
d_table->setText(d_table->currentRow (), col, "");
if (col >= 0)
{
d_table->setText(d_table->currentRow (), col, "");
}
emit modifiedData(this, name);
} else {
QStringList lstReadOnly;
Expand Down

0 comments on commit 67abb2b

Please sign in to comment.