OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_slot.cpp versions 1.134 and 1.135
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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);
         }
     }
 }

CVSTrac 2.0.1