Blame doxygen-1.8.18-md5-hash-does-not-match-for-two-different-runs.patch

Than Ngo 39bce8
commit f3ebc866c88b31ab393637e30189d41ddb7f84f0
Than Ngo 39bce8
Author: Dimitri van Heesch <doxygen@gmail.com>
Than Ngo 39bce8
Date:   Fri Apr 17 21:39:13 2020 +0200
Than Ngo 39bce8
Than Ngo 39bce8
    issue #7706: Md5 hash does not match for two different runs
Than Ngo 39bce8
Than Ngo 39bce8
diff --git a/src/memberlist.cpp b/src/memberlist.cpp
Than Ngo 39bce8
index 8a76a1d7..b5377a49 100644
Than Ngo 39bce8
--- a/src/memberlist.cpp
Than Ngo 39bce8
+++ b/src/memberlist.cpp
Than Ngo 39bce8
@@ -1,12 +1,12 @@
Than Ngo 39bce8
 /******************************************************************************
Than Ngo 39bce8
  *
Than Ngo 39bce8
- * 
Than Ngo 39bce8
+ *
Than Ngo 39bce8
  *
Than Ngo 39bce8
  * Copyright (C) 1997-2015 by Dimitri van Heesch.
Than Ngo 39bce8
  *
Than Ngo 39bce8
  * Permission to use, copy, modify, and distribute this software and its
Than Ngo 39bce8
- * documentation under the terms of the GNU General Public License is hereby 
Than Ngo 39bce8
- * granted. No representations are made about the suitability of this software 
Than Ngo 39bce8
+ * documentation under the terms of the GNU General Public License is hereby
Than Ngo 39bce8
+ * granted. No representations are made about the suitability of this software
Than Ngo 39bce8
  * for any purpose. It is provided "as is" without express or implied warranty.
Than Ngo 39bce8
  * See the GNU General Public License for more details.
Than Ngo 39bce8
  *
Than Ngo 39bce8
@@ -63,10 +63,11 @@ MemberList::~MemberList()
Than Ngo 39bce8
   delete memberGroupList;
Than Ngo 39bce8
 }
Than Ngo 39bce8
 
Than Ngo 39bce8
-int MemberList::compareValues(const MemberDef *c1, const MemberDef *c2) const
Than Ngo 39bce8
+static int genericCompareMembers(const MemberDef *c1,const MemberDef *c2)
Than Ngo 39bce8
 {
Than Ngo 39bce8
-  static bool sortConstructorsFirst = Config_getBool(SORT_MEMBERS_CTORS_1ST);
Than Ngo 39bce8
-  if (sortConstructorsFirst) {
Than Ngo 39bce8
+  bool sortConstructorsFirst = Config_getBool(SORT_MEMBERS_CTORS_1ST);
Than Ngo 39bce8
+  if (sortConstructorsFirst)
Than Ngo 39bce8
+  {
Than Ngo 39bce8
     int ord1 = c1->isConstructor() ? 2 : (c1->isDestructor() ? 1 : 0);
Than Ngo 39bce8
     int ord2 = c2->isConstructor() ? 2 : (c2->isDestructor() ? 1 : 0);
Than Ngo 39bce8
     if (ord1 > ord2)
Than Ngo 39bce8
@@ -74,11 +75,19 @@ int MemberList::compareValues(const MemberDef *c1, const MemberDef *c2) const
Than Ngo 39bce8
     else if (ord2 > ord1)
Than Ngo 39bce8
       return 1;
Than Ngo 39bce8
   }
Than Ngo 39bce8
+  // sort on name
Than Ngo 39bce8
   int cmp = qstricmp(c1->name(),c2->name());
Than Ngo 39bce8
+  // then on argument list
Than Ngo 39bce8
   if (cmp==0 && c1->argsString() && c2->argsString())
Than Ngo 39bce8
   {
Than Ngo 39bce8
     cmp = qstricmp(c1->argsString(),c2->argsString());
Than Ngo 39bce8
   }
Than Ngo 39bce8
+  // then on file in which the item is defined
Than Ngo 39bce8
+  if (cmp==0)
Than Ngo 39bce8
+  {
Than Ngo 39bce8
+    cmp = qstricmp(c1->getDefFileName(),c2->getDefFileName());
Than Ngo 39bce8
+  }
Than Ngo 39bce8
+  // then on line number at which the member is defined
Than Ngo 39bce8
   if (cmp==0)
Than Ngo 39bce8
   {
Than Ngo 39bce8
     cmp = c1->getDefLine()-c2->getDefLine();
Than Ngo 39bce8
@@ -86,6 +95,11 @@ int MemberList::compareValues(const MemberDef *c1, const MemberDef *c2) const
Than Ngo 39bce8
   return cmp;
Than Ngo 39bce8
 }
Than Ngo 39bce8
 
Than Ngo 39bce8
+int MemberList::compareValues(const MemberDef *c1, const MemberDef *c2) const
Than Ngo 39bce8
+{
Than Ngo 39bce8
+  return genericCompareMembers(c1,c2);
Than Ngo 39bce8
+}
Than Ngo 39bce8
+
Than Ngo 39bce8
 int MemberList::countInheritableMembers(const ClassDef *inheritedFrom) const
Than Ngo 39bce8
 {
Than Ngo 39bce8
   int count=0;
Than Ngo 39bce8
@@ -295,7 +309,7 @@ MemberDef *MemberList::take(uint index)
Than Ngo 39bce8
 }
Than Ngo 39bce8
 
Than Ngo 39bce8
 MemberListIterator::MemberListIterator(const MemberList &l) :
Than Ngo 39bce8
-  QListIterator<MemberDef>(l) 
Than Ngo 39bce8
+  QListIterator<MemberDef>(l)
Than Ngo 39bce8
 {
Than Ngo 39bce8
 }
Than Ngo 39bce8
 
Than Ngo 39bce8
@@ -385,9 +399,9 @@ bool MemberList::declVisible() const
Than Ngo 39bce8
         case MemberType_Service:    // fall through
Than Ngo 39bce8
         case MemberType_Sequence:   // fall through
Than Ngo 39bce8
         case MemberType_Dictionary: // fall through
Than Ngo 39bce8
-        case MemberType_Event:  
Than Ngo 39bce8
+        case MemberType_Event:
Than Ngo 39bce8
           return TRUE;
Than Ngo 39bce8
-        case MemberType_Enumeration: 
Than Ngo 39bce8
+        case MemberType_Enumeration:
Than Ngo 39bce8
           {
Than Ngo 39bce8
             // if this is an anonymous enum and there are variables of this
Than Ngo 39bce8
             // enum type (i.e. enumVars>0), then we do not show the enum here.
Than Ngo 39bce8
@@ -399,7 +413,7 @@ bool MemberList::declVisible() const
Than Ngo 39bce8
           break;
Than Ngo 39bce8
         case MemberType_Friend:
Than Ngo 39bce8
           return TRUE;
Than Ngo 39bce8
-        case MemberType_EnumValue: 
Than Ngo 39bce8
+        case MemberType_EnumValue:
Than Ngo 39bce8
           {
Than Ngo 39bce8
             if (m_inGroup)
Than Ngo 39bce8
             {
Than Ngo 39bce8
@@ -431,7 +445,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
Than Ngo 39bce8
   }
Than Ngo 39bce8
   //printf("  --> writePlainDeclaration() numDecMembers()=%d\n",
Than Ngo 39bce8
   //    numDecMembers());
Than Ngo 39bce8
-  
Than Ngo 39bce8
+
Than Ngo 39bce8
   ol.pushGeneratorState();
Than Ngo 39bce8
 
Than Ngo 39bce8
   bool first=TRUE;
Than Ngo 39bce8
@@ -460,13 +474,13 @@ void MemberList::writePlainDeclarations(OutputList &ol,
Than Ngo 39bce8
         case MemberType_Service:     // fall through
Than Ngo 39bce8
         case MemberType_Sequence:    // fall through
Than Ngo 39bce8
         case MemberType_Dictionary:  // fall through
Than Ngo 39bce8
-        case MemberType_Event:  
Than Ngo 39bce8
+        case MemberType_Event:
Than Ngo 39bce8
           {
Than Ngo 39bce8
             if (first) ol.startMemberList(),first=FALSE;
Than Ngo 39bce8
             md->writeDeclaration(ol,cd,nd,fd,gd,m_inGroup,inheritedFrom,inheritId);
Than Ngo 39bce8
             break;
Than Ngo 39bce8
           }
Than Ngo 39bce8
-        case MemberType_Enumeration: 
Than Ngo 39bce8
+        case MemberType_Enumeration:
Than Ngo 39bce8
           {
Than Ngo 39bce8
             // if this is an anonymous enum and there are variables of this
Than Ngo 39bce8
             // enum type (i.e. enumVars>0), then we do not show the enum here.
Than Ngo 39bce8
@@ -531,7 +545,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
Than Ngo 39bce8
         case MemberType_Friend:
Than Ngo 39bce8
           if (inheritedFrom==0)
Than Ngo 39bce8
           {
Than Ngo 39bce8
-            if (first) 
Than Ngo 39bce8
+            if (first)
Than Ngo 39bce8
             {
Than Ngo 39bce8
               ol.startMemberList();
Than Ngo 39bce8
               first=FALSE;
Than Ngo 39bce8
@@ -539,7 +553,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
Than Ngo 39bce8
             md->writeDeclaration(ol,cd,nd,fd,gd,m_inGroup,inheritedFrom,inheritId);
Than Ngo 39bce8
             break;
Than Ngo 39bce8
           }
Than Ngo 39bce8
-        case MemberType_EnumValue: 
Than Ngo 39bce8
+        case MemberType_EnumValue:
Than Ngo 39bce8
           {
Than Ngo 39bce8
             if (m_inGroup)
Than Ngo 39bce8
             {
Than Ngo 39bce8
@@ -565,7 +579,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
Than Ngo 39bce8
         //printf("anonymous compound members\n");
Than Ngo 39bce8
         if (md->isBriefSectionVisible())
Than Ngo 39bce8
         {
Than Ngo 39bce8
-          if (first) 
Than Ngo 39bce8
+          if (first)
Than Ngo 39bce8
           {
Than Ngo 39bce8
             ol.startMemberList();
Than Ngo 39bce8
             first=FALSE;
Than Ngo 39bce8
@@ -576,10 +590,10 @@ void MemberList::writePlainDeclarations(OutputList &ol,
Than Ngo 39bce8
       }
Than Ngo 39bce8
     }
Than Ngo 39bce8
   }
Than Ngo 39bce8
- 
Than Ngo 39bce8
-  if (!first) 
Than Ngo 39bce8
+
Than Ngo 39bce8
+  if (!first)
Than Ngo 39bce8
   {
Than Ngo 39bce8
-    ol.endMemberList(); 
Than Ngo 39bce8
+    ol.endMemberList();
Than Ngo 39bce8
   }
Than Ngo 39bce8
 
Than Ngo 39bce8
   ol.popGeneratorState();
Than Ngo 39bce8
@@ -635,7 +649,7 @@ void MemberList::writeDeclarations(OutputList &ol,
Than Ngo 39bce8
       if (title)
Than Ngo 39bce8
       {
Than Ngo 39bce8
         ol.writeInheritedSectionTitle(inheritId,cd->getReference(),
Than Ngo 39bce8
-                                      cd->getOutputFileBase(), 
Than Ngo 39bce8
+                                      cd->getOutputFileBase(),
Than Ngo 39bce8
                                       cd->anchor(),title,cd->displayName());
Than Ngo 39bce8
       }
Than Ngo 39bce8
       ol.popGeneratorState();
Than Ngo 39bce8
@@ -643,7 +657,7 @@ void MemberList::writeDeclarations(OutputList &ol,
Than Ngo 39bce8
   }
Than Ngo 39bce8
   else if (num>numEnumValues)
Than Ngo 39bce8
   {
Than Ngo 39bce8
-    if (title) 
Than Ngo 39bce8
+    if (title)
Than Ngo 39bce8
     {
Than Ngo 39bce8
       if (showInline)
Than Ngo 39bce8
       {
Than Ngo 39bce8
@@ -663,7 +677,7 @@ void MemberList::writeDeclarations(OutputList &ol,
Than Ngo 39bce8
         ol.endMemberHeader();
Than Ngo 39bce8
       }
Than Ngo 39bce8
     }
Than Ngo 39bce8
-    if (subtitle) 
Than Ngo 39bce8
+    if (subtitle)
Than Ngo 39bce8
     {
Than Ngo 39bce8
       QCString st=subtitle;
Than Ngo 39bce8
       st = st.stripWhiteSpace();
Than Ngo 39bce8
@@ -728,7 +742,7 @@ void MemberList::writeDeclarations(OutputList &ol,
Than Ngo 39bce8
       }
Than Ngo 39bce8
     }
Than Ngo 39bce8
   }
Than Ngo 39bce8
-  if (inheritedFrom && cd) 
Than Ngo 39bce8
+  if (inheritedFrom && cd)
Than Ngo 39bce8
   {
Than Ngo 39bce8
     // also add members that of this list type, that are grouped together
Than Ngo 39bce8
     // in a separate list in class 'inheritedFrom'
Than Ngo 39bce8
@@ -772,7 +786,7 @@ void MemberList::writeDocumentation(OutputList &ol,
Than Ngo 39bce8
   overloadCountDict.setAutoDelete(TRUE);
Than Ngo 39bce8
   for (mli.toFirst() ; (md=mli.current()) ; ++mli)
Than Ngo 39bce8
   {
Than Ngo 39bce8
-    if (md->isDetailedSectionVisible(m_inGroup,container->definitionType()==Definition::TypeFile) && 
Than Ngo 39bce8
+    if (md->isDetailedSectionVisible(m_inGroup,container->definitionType()==Definition::TypeFile) &&
Than Ngo 39bce8
         !(md->isEnumValue() && !showInline))
Than Ngo 39bce8
     {
Than Ngo 39bce8
       uint *pCount = overloadTotalDict.find(md->name());
Than Ngo 39bce8
@@ -790,7 +804,7 @@ void MemberList::writeDocumentation(OutputList &ol,
Than Ngo 39bce8
 
Than Ngo 39bce8
   for (mli.toFirst() ; (md=mli.current()) ; ++mli)
Than Ngo 39bce8
   {
Than Ngo 39bce8
-    if (md->isDetailedSectionVisible(m_inGroup,container->definitionType()==Definition::TypeFile) && 
Than Ngo 39bce8
+    if (md->isDetailedSectionVisible(m_inGroup,container->definitionType()==Definition::TypeFile) &&
Than Ngo 39bce8
         !(md->isEnumValue() && !showInline))
Than Ngo 39bce8
     {
Than Ngo 39bce8
       uint overloadCount = *overloadTotalDict.find(md->name());
Than Ngo 39bce8
@@ -949,7 +963,7 @@ void MemberList::addListReferences(Definition *def)
Than Ngo 39bce8
         MemberDef *vmd;
Than Ngo 39bce8
         for ( ; (vmd=vmli.current()) ; ++vmli)
Than Ngo 39bce8
         {
Than Ngo 39bce8
-          //printf("   adding %s\n",vmd->name().data());  
Than Ngo 39bce8
+          //printf("   adding %s\n",vmd->name().data());
Than Ngo 39bce8
           vmd->addListReference(def);
Than Ngo 39bce8
         }
Than Ngo 39bce8
       }
Than Ngo 39bce8
@@ -990,7 +1004,7 @@ void MemberList::setNeedsSorting(bool b)
Than Ngo 39bce8
   m_needsSorting = b;
Than Ngo 39bce8
 }
Than Ngo 39bce8
 
Than Ngo 39bce8
-QCString MemberList::listTypeAsString(MemberListType type) 
Than Ngo 39bce8
+QCString MemberList::listTypeAsString(MemberListType type)
Than Ngo 39bce8
 {
Than Ngo 39bce8
   switch(type)
Than Ngo 39bce8
   {
Than Ngo 39bce8
@@ -1087,16 +1101,7 @@ void MemberList::writeTagFile(FTextStream &tagFile)
Than Ngo 39bce8
 
Than Ngo 39bce8
 int MemberSDict::compareValues(const MemberDef *c1, const MemberDef *c2) const
Than Ngo 39bce8
 {
Than Ngo 39bce8
-  //printf("MemberSDict::compareValues(%s,%s)\n",c1->name().data(),c2->name().data());
Than Ngo 39bce8
-  int cmp = qstricmp(c1->name(),c2->name());
Than Ngo 39bce8
-  if (cmp)
Than Ngo 39bce8
-  {
Than Ngo 39bce8
-    return cmp;
Than Ngo 39bce8
-  }
Than Ngo 39bce8
-  else
Than Ngo 39bce8
-  {
Than Ngo 39bce8
-    return c1->getDefLine()-c2->getDefLine();
Than Ngo 39bce8
-  }
Than Ngo 39bce8
+  return genericCompareMembers(c1,c2);
Than Ngo 39bce8
 }
Than Ngo 39bce8
 
Than Ngo 39bce8
 
Than Ngo 39bce8
commit cd581388f3d013c501e3cefbaf3e81cf93d46fcb
Than Ngo 39bce8
Author: Dimitri van Heesch <doxygen@gmail.com>
Than Ngo 39bce8
Date:   Sun Apr 19 14:21:18 2020 +0200
Than Ngo 39bce8
Than Ngo 39bce8
    issue #7706: Md5 hash does not match for two different runs (part 2)
Than Ngo 39bce8
Than Ngo 39bce8
diff --git a/src/dotfilepatcher.cpp b/src/dotfilepatcher.cpp
Than Ngo 39bce8
index e386af98..20ce4c1b 100644
Than Ngo 39bce8
--- a/src/dotfilepatcher.cpp
Than Ngo 39bce8
+++ b/src/dotfilepatcher.cpp
Than Ngo 39bce8
@@ -132,7 +132,7 @@ static QCString replaceRef(const QCString &buf,const QCString relPath,
Than Ngo 39bce8
   //bool isXLink=FALSE;
Than Ngo 39bce8
   int len = 6;
Than Ngo 39bce8
   int indexS = buf.find("href=\""), indexE;
Than Ngo 39bce8
-  bool setTarget = FALSE;
Than Ngo 39bce8
+  bool targetAlreadySet = buf.find("target=")!=-1;
Than Ngo 39bce8
   if (indexS>5 && buf.find("xlink:href=\"")!=-1) // XLink href (for SVG)
Than Ngo 39bce8
   {
Than Ngo 39bce8
     indexS-=6;
Than Ngo 39bce8
@@ -152,9 +152,9 @@ static QCString replaceRef(const QCString &buf,const QCString relPath,
Than Ngo 39bce8
         // fake ref node to resolve the url
Than Ngo 39bce8
         DocRef *df = new DocRef( (DocNode*) 0, link.mid(5), context );
Than Ngo 39bce8
         result+=externalRef(relPath,df->ref(),TRUE);
Than Ngo 39bce8
-        if (!df->file().isEmpty())  
Than Ngo 39bce8
+        if (!df->file().isEmpty())
Than Ngo 39bce8
           result += df->file().data() + Doxygen::htmlFileExtension;
Than Ngo 39bce8
-        if (!df->anchor().isEmpty()) 
Than Ngo 39bce8
+        if (!df->anchor().isEmpty())
Than Ngo 39bce8
           result += "#" + df->anchor();
Than Ngo 39bce8
         delete df;
Than Ngo 39bce8
         result += "\"";
Than Ngo 39bce8
@@ -174,7 +174,6 @@ static QCString replaceRef(const QCString &buf,const QCString relPath,
Than Ngo 39bce8
         if (!ref.isEmpty())
Than Ngo 39bce8
         {
Than Ngo 39bce8
           result = externalLinkTarget(true);
Than Ngo 39bce8
-          if (result != "") setTarget = TRUE;
Than Ngo 39bce8
         }
Than Ngo 39bce8
         result+= href+"=\"";
Than Ngo 39bce8
         result+=externalRef(relPath,ref,TRUE);
Than Ngo 39bce8
@@ -185,12 +184,14 @@ static QCString replaceRef(const QCString &buf,const QCString relPath,
Than Ngo 39bce8
         result = href+"=\"" + link + "\"";
Than Ngo 39bce8
       }
Than Ngo 39bce8
     }
Than Ngo 39bce8
-    if (!target.isEmpty() && !setTarget)
Than Ngo 39bce8
+    if (!target.isEmpty() && !targetAlreadySet)
Than Ngo 39bce8
     {
Than Ngo 39bce8
       result+=" target=\""+target+"\"";
Than Ngo 39bce8
     }
Than Ngo 39bce8
     QCString leftPart = buf.left(indexS);
Than Ngo 39bce8
     QCString rightPart = buf.mid(indexE+1);
Than Ngo 39bce8
+    //printf("replaceRef(\n'%s'\n)->\n'%s+%s+%s'\n",
Than Ngo 39bce8
+    //    buf.data(),leftPart.data(),result.data(),rightPart.data());
Than Ngo 39bce8
     return leftPart + result + rightPart;
Than Ngo 39bce8
   }
Than Ngo 39bce8
   else
Than Ngo 39bce8
@@ -215,7 +216,7 @@ bool DotFilePatcher::convertMapFile(FTextStream &t,const char *mapName,
Than Ngo 39bce8
                     const QCString &context)
Than Ngo 39bce8
 {
Than Ngo 39bce8
   QFile f(mapName);
Than Ngo 39bce8
-  if (!f.open(IO_ReadOnly)) 
Than Ngo 39bce8
+  if (!f.open(IO_ReadOnly))
Than Ngo 39bce8
   {
Than Ngo 39bce8
     err("problems opening map file %s for inclusion in the docs!\n"
Than Ngo 39bce8
       "If you installed Graphviz/dot after a previous failing run, \n"
Than Ngo 39bce8
@@ -250,7 +251,7 @@ bool DotFilePatcher::convertMapFile(FTextStream &t,const char *mapName,
Than Ngo 39bce8
   return TRUE;
Than Ngo 39bce8
 }
Than Ngo 39bce8
 
Than Ngo 39bce8
-DotFilePatcher::DotFilePatcher(const char *patchFile) 
Than Ngo 39bce8
+DotFilePatcher::DotFilePatcher(const char *patchFile)
Than Ngo 39bce8
   : m_patchFile(patchFile)
Than Ngo 39bce8
 {
Than Ngo 39bce8
   m_maps.setAutoDelete(TRUE);
Than Ngo 39bce8
@@ -346,7 +347,7 @@ bool DotFilePatcher::run() const
Than Ngo 39bce8
   }
Than Ngo 39bce8
   QFile fi(tmpName);
Than Ngo 39bce8
   QFile fo(patchFile);
Than Ngo 39bce8
-  if (!fi.open(IO_ReadOnly)) 
Than Ngo 39bce8
+  if (!fi.open(IO_ReadOnly))
Than Ngo 39bce8
   {
Than Ngo 39bce8
     err("problem opening file %s for patching!\n",tmpName.data());
Than Ngo 39bce8
     QDir::current().rename(tmpName,patchFile);
Than Ngo 39bce8
@@ -380,7 +381,7 @@ bool DotFilePatcher::run() const
Than Ngo 39bce8
     ASSERT(numBytes
Than Ngo 39bce8
     if (isSVGFile)
Than Ngo 39bce8
     {
Than Ngo 39bce8
-      if (interactiveSVG_local) 
Than Ngo 39bce8
+      if (interactiveSVG_local)
Than Ngo 39bce8
       {
Than Ngo 39bce8
         if (line.find("
Than Ngo 39bce8
         {
Than Ngo 39bce8
@@ -412,7 +413,7 @@ bool DotFilePatcher::run() const
Than Ngo 39bce8
           replacedHeader=TRUE;
Than Ngo 39bce8
         }
Than Ngo 39bce8
       }
Than Ngo 39bce8
-      if (!insideHeader || !foundSize) // copy SVG and replace refs, 
Than Ngo 39bce8
+      if (!insideHeader || !foundSize) // copy SVG and replace refs,
Than Ngo 39bce8
                                        // unless we are inside the header of the SVG.
Than Ngo 39bce8
                                        // Then we replace it with another header.
Than Ngo 39bce8
       {
Than Ngo 39bce8
@@ -508,7 +509,7 @@ bool DotFilePatcher::run() const
Than Ngo 39bce8
     // dummy link by real ones
Than Ngo 39bce8
     fi.setName(tmpName);
Than Ngo 39bce8
     fo.setName(orgName);
Than Ngo 39bce8
-    if (!fi.open(IO_ReadOnly)) 
Than Ngo 39bce8
+    if (!fi.open(IO_ReadOnly))
Than Ngo 39bce8
     {
Than Ngo 39bce8
       err("problem opening file %s for reading!\n",tmpName.data());
Than Ngo 39bce8
       return FALSE;
Than Ngo 39bce8
@@ -602,18 +603,18 @@ bool DotFilePatcher::writeSVGFigureLink(FTextStream &out,const QCString &relPath
Than Ngo 39bce8
     if (height<=60) height=300; else height+=300; // add some extra space for zooming
Than Ngo 39bce8
     if (height>600) height=600; // clip to maximum height of 600 pixels
Than Ngo 39bce8
     out << "
";
Than Ngo 39bce8
-    //out << "
Than Ngo 39bce8
-    //out << "
Than Ngo 39bce8
-    out << "
Than Ngo 39bce8
+    //out << "
Than Ngo 39bce8
+    //out << "
Than Ngo 39bce8
+    out << "
Than Ngo 39bce8
         << relPath << baseName << ".svg\" width=\"100%\" height=\"" << height << "\">";
Than Ngo 39bce8
   }
Than Ngo 39bce8
   else
Than Ngo 39bce8
   {
Than Ngo 39bce8
-    //out << "
Than Ngo 39bce8
-    //out << "
Than Ngo 39bce8
-    out << "
Than Ngo 39bce8
-        << relPath << baseName << ".svg\" width=\"" 
Than Ngo 39bce8
-        << ((width*96+48)/72) << "\" height=\"" 
Than Ngo 39bce8
+    //out << "
Than Ngo 39bce8
+    //out << "
Than Ngo 39bce8
+    out << "
Than Ngo 39bce8
+        << relPath << baseName << ".svg\" width=\""
Than Ngo 39bce8
+        << ((width*96+48)/72) << "\" height=\""
Than Ngo 39bce8
         << ((height*96+48)/72) << "\">";
Than Ngo 39bce8
   }
Than Ngo 39bce8
   writeSVGNotSupported(out);
Than Ngo 39bce8
@@ -650,7 +651,7 @@ bool DotFilePatcher::writeVecGfxFigure(FTextStream &out,const QCString &baseName
Than Ngo 39bce8
   }
Than Ngo 39bce8
   //printf("Got PDF/EPS size %d,%d\n",width,height);
Than Ngo 39bce8
   int maxWidth  = 350;  /* approx. page width in points, excl. margins */
Than Ngo 39bce8
-  int maxHeight = 550;  /* approx. page height in points, excl. margins */ 
Than Ngo 39bce8
+  int maxHeight = 550;  /* approx. page height in points, excl. margins */
Than Ngo 39bce8
   out << "\\nopagebreak\n"
Than Ngo 39bce8
          "\\begin{figure}[H]\n"
Than Ngo 39bce8
          "\\begin{center}\n"
Than Ngo 39bce8
diff --git a/src/dotgraph.cpp b/src/dotgraph.cpp
Than Ngo 39bce8
index e622dd4f..c0cc4fdf 100644
Than Ngo 39bce8
--- a/src/dotgraph.cpp
Than Ngo 39bce8
+++ b/src/dotgraph.cpp
Than Ngo 39bce8
@@ -74,15 +74,6 @@ static bool checkDeliverables(const QCString &file1,
Than Ngo 39bce8
   return file1Ok && file2Ok;
Than Ngo 39bce8
 }
Than Ngo 39bce8
 
Than Ngo 39bce8
-static void removeDotGraph(const QCString &dotName)
Than Ngo 39bce8
-{
Than Ngo 39bce8
-  if (Config_getBool(DOT_CLEANUP))
Than Ngo 39bce8
-  {
Than Ngo 39bce8
-    QDir d;
Than Ngo 39bce8
-    d.remove(dotName);
Than Ngo 39bce8
-  }
Than Ngo 39bce8
-}
Than Ngo 39bce8
-
Than Ngo 39bce8
 static bool insertMapFile(FTextStream &out,const QCString &mapFile,
Than Ngo 39bce8
                           const QCString &relPath,const QCString &mapLabel)
Than Ngo 39bce8
 {
Than Ngo 39bce8
@@ -108,7 +99,7 @@ static bool insertMapFile(FTextStream &out,const QCString &mapFile,
Than Ngo 39bce8
 QCString DotGraph::imgName() const
Than Ngo 39bce8
 {
Than Ngo 39bce8
   return m_baseName + ((m_graphFormat == GOF_BITMAP) ?
Than Ngo 39bce8
-                      ("." + getDotImageExtension()) : (Config_getBool(USE_PDFLATEX) ? ".pdf" : ".eps")); 
Than Ngo 39bce8
+                      ("." + getDotImageExtension()) : (Config_getBool(USE_PDFLATEX) ? ".pdf" : ".eps"));
Than Ngo 39bce8
 }
Than Ngo 39bce8
 
Than Ngo 39bce8
 QCString DotGraph::writeGraph(
Than Ngo 39bce8
@@ -166,7 +157,6 @@ bool DotGraph::prepareDotFile()
Than Ngo 39bce8
      )
Than Ngo 39bce8
   {
Than Ngo 39bce8
     // all needed files are there
Than Ngo 39bce8
-    removeDotGraph(absDotName());
Than Ngo 39bce8
     return FALSE;
Than Ngo 39bce8
   }
Than Ngo 39bce8