ossp-pkg/as/as-gui/as_slot.cpp 1.63 -> 1.64
--- as_slot.cpp 2002/12/16 16:05:57 1.63
+++ as_slot.cpp 2002/12/16 16:23:36 1.64
@@ -216,13 +216,15 @@
//
void Titraqform::refreshDisplay(void)
{
- int nIter = m_pMaintable->numRows(); // Iterate through total rows
+ int nIter = 0; // Matrix iterator
+ int nRows = m_pMaintable->numRows(); // Total number of rows
// Sweep through matrix validating linewise
// data and updating line numbers for all rows
- while (--nIter >= 0) {
+ while (nIter < nRows) {
this->validateData(nIter, 0);
m_pMaintable->setText(nIter, TITRAQ_IDXLINE, QString::number(nIter).rightJustify(4, QChar('0')));
+ nIter++;
}
this->repaint(); // Do a general repaint of viewable area
|
|