# HG changeset patch # User deba # Date 1120499467 0 # Node ID 8f589de42c76c5b59d409e9ca2ab45a4acc7a91c # Parent 777834118f73a2d451a27883f508aed0b91724c5 May it does not throw Warning with g++-4.0 diff -r 777834118f73 -r 8f589de42c76 lemon/graph_to_eps.h --- a/lemon/graph_to_eps.h Mon Jul 04 17:22:03 2005 +0000 +++ b/lemon/graph_to_eps.h Mon Jul 04 17:51:07 2005 +0000 @@ -707,13 +707,15 @@ } BoundingBox bb; ///\bug: Chech whether the graph is empty. - if(NodeIt(g)==INVALID) bb+=xy(0,0); for(NodeIt n(g);n!=INVALID;++n) { double ns=_nodeSizes[n]*_nodeScale; xy p(ns,ns); bb+=p+_coords[n]; bb+=-p+_coords[n]; - } + } + if (bb.empty()) { + bb = BoundingBox(xy(0,0)); + } if(_scaleToA4) os <<"%%BoundingBox: 0 0 596 842\n%%DocumentPaperSizes: a4\n"; else os << "%%BoundingBox: "