~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/2geom/pathvector.cpp

  • Committer: Ted Gould
  • Date: 2008-11-21 05:24:08 UTC
  • Revision ID: ted@canonical.com-20081121052408-tilucis2pjrrpzxx
MergeĀ fromĀ fe-moved

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    return path_out;
57
57
}
58
58
 
59
 
// FIXME: this function does not work for empty paths, because Rect cannot be initialized empty yet. check rect.h
60
 
Rect bounds_fast( PathVector const& pv )
 
59
OptRect bounds_fast( PathVector const& pv )
61
60
{
62
61
    typedef PathVector::const_iterator const_iterator;
63
62
    
64
 
    Rect bound;
 
63
    OptRect bound;
65
64
    if (pv.empty()) return bound;
66
65
    
67
66
    bound = (pv.begin())->boundsFast();
72
71
    return bound;
73
72
}
74
73
 
75
 
// FIXME: this function does not work for empty paths, because Rect cannot be initialized empty yet. check rect.h
76
 
Rect bounds_exact( PathVector const& pv )
 
74
OptRect bounds_exact( PathVector const& pv )
77
75
{
78
76
    typedef PathVector::const_iterator const_iterator;
79
77
    
80
 
    Rect bound;
 
78
    OptRect bound;
81
79
    if (pv.empty()) return bound;
82
80
    
83
81
    bound = (pv.begin())->boundsExact();