~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/libnr/nr-convert2geom.h

  • Committer: cilix42
  • Date: 2008-09-18 17:48:42 UTC
  • Revision ID: cilix42@users.sourceforge.net-20080918174842-1ad33a7d7gqhv2hq
Next roud of NR ==> Geom conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    NR::Rect rect(rect2geom.min(), rect2geom.max());
46
46
    return rect;
47
47
}
 
48
inline boost::optional<Geom::Rect> to_2geom(boost::optional<NR::Rect> const & rect) {
 
49
    boost::optional<Geom::Rect> rect2geom;
 
50
    if (!rect) {
 
51
        return rect2geom;
 
52
    }
 
53
    rect2geom = to_2geom(*rect);
 
54
    return rect2geom;
 
55
}
48
56
 
49
57
inline NR::scale from_2geom(Geom::Scale const & in) {
50
58
    return NR::scale(in[Geom::X], in[Geom::Y]);