equal
deleted
inserted
replaced
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) |