Diff for /Amaya/amaya/templateUtils.c between versions 1.39 and 1.40

version 1.39, 2009/06/18 10:35:57 version 1.40, 2009/06/19 08:52:43
Line 597  char *SaveDocumentToNewDoc(Document doc, Line 597  char *SaveDocumentToNewDoc(Document doc,
   ThotBool      res = FALSE;    ThotBool      res = FALSE;
   
   localFile = GetLocalPath (newdoc, newpath);    localFile = GetLocalPath (newdoc, newpath);
   // update all links  
     // apply link changes to the template
       TtaOpenUndoSequence (doc, NULL, NULL, 0, 0);
   SetRelativeURLs (doc, newpath, NULL, FALSE, FALSE, FALSE, FALSE);    SetRelativeURLs (doc, newpath, NULL, FALSE, FALSE, FALSE, FALSE);
   // prepare the new document view    // prepare the new document view
   TtaExtractName (newpath, DirectoryName, DocumentName);    TtaExtractName (newpath, DirectoryName, DocumentName);
Line 624  char *SaveDocumentToNewDoc(Document doc, Line 626  char *SaveDocumentToNewDoc(Document doc,
   else    else
     /* docType = docXml; */      /* docType = docXml; */
     res = TtaExportDocumentWithNewLineNumbers (doc, localFile, NULL, FALSE);      res = TtaExportDocumentWithNewLineNumbers (doc, localFile, NULL, FALSE);
   
     // restore the previous state of the template
     TtaCloseUndoSequence (doc);
     TtaUndoNoRedo (doc);
   if (res)    if (res)
     return localFile;      return localFile;
   else    else

Removed from v.1.39  
changed lines
  Added in v.1.40


Webmaster