~ubuntu-branches/ubuntu/wily/apvlv/wily

« back to all changes in this revision

Viewing changes to src/ApvlvDoc.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Gaertner, Lukas Gaertner, Stefan Ritter
  • Date: 2010-12-23 15:28:02 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20101223152802-ll13lmtpxmylbiqz
Tags: 0.0.9.8-1
[Lukas Gaertner]
* Adopt package (Closes: #607320)

[Stefan Ritter]
* Add libdjvulibre-dev to build dependencies (Closes: #602010)
* Bump Standards-Version to 3.9.1
* Imported Upstream version 0.0.9.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
518
518
    return MATCH;
519
519
  }
520
520
 
521
 
  returnType ApvlvDoc::process (int ct, guint key)
 
521
  returnType ApvlvDoc::process (int has, int ct, guint key)
522
522
  {
523
523
    if (mProCmd != 0)
524
524
      {
525
525
        return subprocess (ct, key);
526
526
      }
527
527
 
528
 
    int oct = ct;
529
 
    if (ct == 0)
 
528
    if (!has)
530
529
      {
531
 
        ct++;
 
530
        ct = 1;
532
531
      }
533
532
 
534
533
    switch (key)
613
612
        break;
614
613
      case 'G':
615
614
        markposition ('\'');
616
 
        if (oct == 0)
 
615
        if (has)
 
616
          {
 
617
            showpage (ct - 1);
 
618
          }
 
619
        else
617
620
          {
618
621
            showpage (-1);
619
622
          }
620
 
        else
621
 
          {
622
 
            showpage (ct - 1);
623
 
          }
624
623
        break;
625
624
      case 'm':
626
625
      case '\'':