diff options
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r-- | src/diagram.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp index 64ea491..80c85c6 100644 --- a/src/diagram.cpp +++ b/src/diagram.cpp @@ -1054,7 +1054,7 @@ void ClassDiagram::writeFigure(FTextStream &output,const char *path, p->base.computeExtremes(&baseMaxLabelWidth,&baseMaxX); p->super.computeExtremes(&superMaxLabelWidth,&superMaxX); - uint rows=baseRows+superRows-1; + uint rows=QMAX(1,baseRows+superRows-1); uint cols=(QMAX(baseMaxX,superMaxX)+gridWidth*2-1)/gridWidth; // Estimate the image aspect width and height in pixels. |