Show
Ignore:
Timestamp:
02/02/09 20:42:33 (3 years ago)
Author:
mirko
Message:

small fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/clutter-experiments/main.cc

    r52 r54  
    182182        { 
    183183          me->the_doc_m->page(ii).render(pdfcube::page::LOW_RES); 
    184           int percent = (100*(ii-1))/(me->the_doc_m->n_pages()); 
     184          int percent = (100*(ii))/(me->the_doc_m->n_pages()+2); 
    185185          std::ostringstream pt; 
    186186          pt << percent << "%";  
     
    189189        } 
    190190      me->the_doc_m->page(0).render(pdfcube::page::HI_RES); 
    191       int percent = (100*(me->the_doc_m->n_pages()-1)) / 
    192         (me->the_doc_m->n_pages()); 
     191      int percent = (100*(me->the_doc_m->n_pages())) / 
     192        (me->the_doc_m->n_pages()+2); 
    193193      std::ostringstream pt; 
    194194      pt << percent << "%";