patch fo djvm.cpp, so that

djvm -i docm.djvu doc.djvu 1 
djvm -d docm.djvu 1

act both on page#1 as listed by djvm -l docm.djvu 
also 

djvm -i docm.djvu doc.djvu 0

adds on top instead of appending, as I'd expect

WFM

-- 
 paolo
 
 GPG/PGP id:0x21426690 kfp:EDFB 0103 A8D8 4180 8AB5  D59E 9771 0F28 2142 6690
 "Indeed, it does come with warranty: it *will* fail."


--- tools/djvm.cpp.orig Fri Nov  7 23:08:22 2003
+++ tools/djvm.cpp      Mon Dec 19 09:32:24 2005
@@ -218,7 +218,7 @@
 
       // Insert page
    int page_num=-1;
-   if (argc==5) page_num=atoi(argv[4])-1;
+   if (argc==5) page_num=atoi(argv[4]);
    doc->insert_page(GURL::Filename::UTF8(argv[3]), page_num);
 
       // Save the document
@@ -237,7 +237,7 @@
    GP<DjVuDocEditor> doc=DjVuDocEditor::create_wait(url);
 
       // Delete the page
-   int page_num=atoi(argv[3])-1;
+   int page_num=atoi(argv[3]);
    if (page_num<0)
    {
      DjVuPrintErrorUTF8("%s","Page number must be positive.\n");


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to