Changeset 131 for tools/ddd


Ignore:
Timestamp:
12/08/09 15:03:10 (15 years ago)
Author:
ogrimm
Message:
Fixed bug with last event in file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ddd/Functions.cpp

    r129 r131  
    9797  ftruncate(fileno(Tmpfile),0);
    9898  rewind(Tmpfile);
    99   if (RD->ReadEvent(EventNo->value()-1, Tmpfile) != CTX_OK) {
     99  if (RD->ReadEvent(EventNo->value(), Tmpfile) != CTX_OK) {
    100100    QMessageBox::warning(this, "ddd Warning","Could not read event.",QMessageBox::Ok);
    101101    EventHeaderDisplay->clear();
Note: See TracChangeset for help on using the changeset viewer.