lemon/graph_to_eps.h
changeset 255 914c5432be97
parent 220 a5d8c039f218
child 280 e7f8647ce760
     1.1 --- a/lemon/graph_to_eps.h	Tue Sep 02 00:44:17 2008 +0200
     1.2 +++ b/lemon/graph_to_eps.h	Tue Sep 02 10:23:23 2008 +0100
     1.3 @@ -725,10 +725,10 @@
     1.4  
     1.5      double diag_len = 1;
     1.6      if(!(_absoluteNodeSizes&&_absoluteArcWidths)) {
     1.7 -      dim2::BoundingBox<double> bb;
     1.8 +      dim2::Box<double> bb;
     1.9        for(NodeIt n(g);n!=INVALID;++n) bb.add(mycoords[n]);
    1.10        if (bb.empty()) {
    1.11 -        bb = dim2::BoundingBox<double>(dim2::Point<double>(0,0));
    1.12 +        bb = dim2::Box<double>(dim2::Point<double>(0,0));
    1.13        }
    1.14        diag_len = std::sqrt((bb.bottomLeft()-bb.topRight()).normSquare());
    1.15        if(diag_len<EPSILON) diag_len = 1;
    1.16 @@ -736,7 +736,7 @@
    1.17        if(!_absoluteArcWidths) _arcWidthScale*=diag_len;
    1.18      }
    1.19  
    1.20 -    dim2::BoundingBox<double> bb;
    1.21 +    dim2::Box<double> bb;
    1.22      for(NodeIt n(g);n!=INVALID;++n) {
    1.23        double ns=_nodeSizes[n]*_nodeScale;
    1.24        dim2::Point<double> p(ns,ns);
    1.25 @@ -758,7 +758,7 @@
    1.26        }
    1.27      }
    1.28      if (bb.empty()) {
    1.29 -      bb = dim2::BoundingBox<double>(dim2::Point<double>(0,0));
    1.30 +      bb = dim2::Box<double>(dim2::Point<double>(0,0));
    1.31      }
    1.32  
    1.33      if(_scaleToA4)