Changeset 34

Show
Ignore:
Timestamp:
12/18/08 11:50:52 (3 years ago)
Author:
mirko
Message:

Missing file

Files:
2 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pdfcube.cc

    r27 r34  
    2222// 
    2323// Notes: please indent using 2 spaces. 
     24 
     25// #define NDEBUG 
    2426 
    2527#include <iostream> 
     
    19551957 
    19561958  page_transition = new bool[pc->pages()]; 
     1959  std::fill(&page_transition[0], &page_transition[pc->pages()], false); 
    19571960  if(vm.count("transitions")) { 
    19581961    vector<int> tr = vm["transitions"].as<std::vector<int> >(); 
    1959     for(int ii = 0; ii < pc->pages(); ii++) { 
    1960       page_transition[ii] = false; 
    1961     } 
    19621962    for (std::vector<int>::iterator ii = tr.begin(); ii != tr.end(); ++ii) { 
    19631963      if(*ii > pc->pages())  
    1964         cerr << "Transision after end of file." << endl; 
     1964        { 
     1965          cerr << "Transision after end of file." << endl; 
     1966        } 
    19651967      else 
    1966         page_transition[*ii-1] = true; 
     1968        { 
     1969          page_transition[*ii-1] = true; 
     1970#ifndef NDEBUG 
     1971          cerr << "Transision at: " << (*ii-1) << endl; 
     1972#endif 
     1973        } 
    19671974    } 
    19681975  }