~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/display/inkscape-cairo.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:
170
170
 
171
171
/** Feeds path-creating calls to the cairo context translating them from the Path, with the given transform and shift */
172
172
static void
173
 
feed_path_to_cairo (cairo_t *ct, Geom::Path const &path, Geom::Matrix trans, boost::optional<Geom::Rect> area, bool optimize_stroke, double stroke_width)
 
173
feed_path_to_cairo (cairo_t *ct, Geom::Path const &path, Geom::Matrix trans, Geom::OptRect area, bool optimize_stroke, double stroke_width)
174
174
{
175
 
    if (!area || area->isEmpty())
 
175
    if (!area)
176
176
        return;
177
177
    if (path.empty())
178
178
        return;
214
214
/** Feeds path-creating calls to the cairo context translating them from the PathVector, with the given transform and shift
215
215
 *  One must have done cairo_new_path(ct); before calling this function. */
216
216
void
217
 
feed_pathvector_to_cairo (cairo_t *ct, Geom::PathVector const &pathv, Geom::Matrix trans, boost::optional<Geom::Rect> area, bool optimize_stroke, double stroke_width)
 
217
feed_pathvector_to_cairo (cairo_t *ct, Geom::PathVector const &pathv, Geom::Matrix trans, Geom::OptRect area, bool optimize_stroke, double stroke_width)
218
218
{
219
 
    if (!area || area->isEmpty())
 
219
    if (!area)
220
220
        return;
221
221
    if (pathv.empty())
222
222
        return;