Check-in Number:
|
4091 | |
Date: |
2003-Feb-28 18:12:24 (local)
2003-Feb-28 17:12:24 (UTC) |
User: | ms |
Branch: | |
Comment: |
Changed CRC calculation string algorhythm to pad with '0' to 8 places. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/as/as-gui/as_dataop.cpp 1.50 -> 1.51
--- as_dataop.cpp 2003/02/19 18:19:19 1.50
+++ as_dataop.cpp 2003/02/28 17:12:24 1.51
@@ -342,7 +342,8 @@
Qualistring Testuple = User + Guid + Rev + Date + Start;
Testuple += Finish + Amount + Account + Remark;
U32 Valcrc = Testuple.getCrc(); // Finally set the checksum to its new value
- m_pMaintable->setText(nIter, TITRAQ_IDXCRC, "0x" + QString::number(Valcrc, 16));
+ QString Crcstr = QString::number(Valcrc, 16).rightJustify(8, '0');
+ m_pMaintable->setText(nIter, TITRAQ_IDXCRC, "0x" + Crcstr);
}
}
else // if isEmpty()
|
|
ossp-pkg/as/as-gui/as_slot.cpp 1.134 -> 1.135
--- as_slot.cpp 2003/02/27 13:57:47 1.134
+++ as_slot.cpp 2003/02/28 17:12:24 1.135
@@ -810,6 +810,7 @@
if (nCol != TITRAQ_IDXSTATUS && nCol != TITRAQ_IDXLINE \
&& m_pMaintable->numRows() > 0) {
U32 Testcrc, Valcrc;
+ QString Crcstr;
std::auto_ptr<Qualistring>pWholerow(new Qualistring);
int nRealrow = -1;
@@ -837,8 +838,9 @@
*pWholerow += m_pMaintable->text(nRealrow, nIter);
Valcrc = pWholerow->getCrc(); // Finally set the checksum to its new value
- m_pMaintable->setText(nRealrow, TITRAQ_IDXCRC, "0x" + QString::number(Valcrc, 16));
- m_pCrcedit->setText("0x" + QString::number(Valcrc, 16));
+ Crcstr = QString::number(Valcrc, 16).rightJustify(8, '0');
+ m_pMaintable->setText(nRealrow, TITRAQ_IDXCRC, "0x" + Crcstr);
+ m_pCrcedit->setText("0x" + Crcstr);
}
}
}
|
|