Changeset 109 for tools/ddd


Ignore:
Timestamp:
09/23/09 11:04:18 (15 years ago)
Author:
ogrimm
Message:
Bug fix to allow selection of the last event in a file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ddd/Functions.cpp

    r82 r109  
    8888  ftruncate(fileno(Tmpfile),0);
    8989  rewind(Tmpfile);
    90   if (RD->ReadEvent(EventNo->value(), Tmpfile) != CTX_OK) {
     90  if (RD->ReadEvent(EventNo->value()-1, Tmpfile) != CTX_OK) {
    9191    QMessageBox::warning(this, "ddd Warning","Could not read event.",QMessageBox::Ok);
    9292    EventHeaderDisplay->clear();
Note: See TracChangeset for help on using the changeset viewer.