lemon/graph_to_eps.h
changeset 1600 c421cc1b70ed
parent 1575 438bc5defad1
child 1604 4d037c2b66aa
equal deleted inserted replaced
6:c07061cf2986 7:d112fee9f094
   717     BoundingBox<double> bb;
   717     BoundingBox<double> bb;
   718     ///\bug: Chech whether the graph is empty.
   718     ///\bug: Chech whether the graph is empty.
   719     for(NodeIt n(g);n!=INVALID;++n) {
   719     for(NodeIt n(g);n!=INVALID;++n) {
   720       double ns=_nodeSizes[n]*_nodeScale;
   720       double ns=_nodeSizes[n]*_nodeScale;
   721       xy<double> p(ns,ns);
   721       xy<double> p(ns,ns);
   722       bb+=p+_coords[n];
   722       bb.add(p+_coords[n]);
   723       bb+=-p+_coords[n];
   723       bb.add(-p+_coords[n]);
   724     }
   724     }
   725     if (bb.empty()) {
   725     if (bb.empty()) {
   726       bb = BoundingBox<double>(xy<double>(0,0));
   726       bb = BoundingBox<double>(xy<double>(0,0));
   727     }
   727     }
   728     if(_scaleToA4)
   728     if(_scaleToA4)