summaryrefslogtreecommitdiffstats
path: root/src/diagram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r--src/diagram.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp
index 75a0e00..dd6e601 100644
--- a/src/diagram.cpp
+++ b/src/diagram.cpp
@@ -392,7 +392,7 @@ void TreeDiagram::computeLayout()
// re-organize the diagram items
DiagramItem *root=getFirst()->getFirst();
- while (layoutTree(root,0));
+ while (layoutTree(root,0)) { }
// move first items of the lists
if (row)
@@ -1289,8 +1289,9 @@ void ClassDiagram::writeImage(QTextStream &t,const char *path,
base->drawConnectors(t,&image,TRUE,TRUE,baseRows,superRows,cellWidth,cellHeight);
super->drawConnectors(t,&image,FALSE,TRUE,baseRows,superRows,cellWidth,cellHeight);
- image.save((QCString)path+"/"+fileName+".png");
- Doxygen::indexList.addImageFile(QCString(fileName)+".png");
+#define IMAGE_EXT ".gif"
+ image.save((QCString)path+"/"+fileName+IMAGE_EXT);
+ Doxygen::indexList.addImageFile(QCString(fileName)+IMAGE_EXT);
if (generateMap) t << "</map>" << endl;
}