COIN-OR::LEMON - Graph Library

Changeset 1539:8f589de42c76 in lemon-0.x


Ignore:
Timestamp:
07/04/05 19:51:07 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2031
Message:

May it does not throw Warning with g++-4.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_to_eps.h

    r1494 r1539  
    708708    BoundingBox<double> bb;
    709709    ///\bug: Chech whether the graph is empty.
    710     if(NodeIt(g)==INVALID) bb+=xy<double>(0,0);
    711710    for(NodeIt n(g);n!=INVALID;++n) {
    712711      double ns=_nodeSizes[n]*_nodeScale;
     
    714713      bb+=p+_coords[n];
    715714      bb+=-p+_coords[n];
    716       }
     715    }
     716    if (bb.empty()) {
     717      bb = BoundingBox<double>(xy<double>(0,0));
     718    }
    717719    if(_scaleToA4)
    718720      os <<"%%BoundingBox: 0 0 596 842\n%%DocumentPaperSizes: a4\n";
Note: See TracChangeset for help on using the changeset viewer.