Changeset 5631fb4d50 in tspsg
- Timestamp:
- Mar 16, 2011, 1:02:49 AM (14 years ago)
- Branches:
- 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- d8a3826f87
- Parents:
- 5cbcd091ed
- git-author:
- Oleksii Serdiuk <contacts@…> (03/16/11 01:02:49)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tspmodel.cpp
r5cbcd091ed r5631fb4d50 326 326 return false; 327 327 if (role == Qt::EditRole && index.row() != index.column()) { 328 if (value.toString().compare(INFSTR) == 0) 328 if ((value.toString().compare(INFSTR) == 0) 329 || (value.toString().contains(QRegExp("^[^0-9]+$", Qt::CaseInsensitive)))) { 329 330 table[index.row()][index.column()] = INFINITY; 330 else {331 } else { 331 332 bool ok; 332 333 double tmp = value.toDouble(&ok);
Note: See TracChangeset
for help on using the changeset viewer.