~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/extension/internal/odf.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:
962
962
 * Get the bounding box of an item, as mapped onto
963
963
 * an ODF document, in cm.
964
964
 */
965
 
static boost::optional<Geom::Rect> getODFBoundingBox(const SPItem *item)
 
965
static Geom::OptRect getODFBoundingBox(const SPItem *item)
966
966
{
967
 
    boost::optional<Geom::Rect> bbox_temp = sp_item_bbox_desktop((SPItem *)item);
968
 
    boost::optional<Geom::Rect> bbox;
 
967
    Geom::OptRect bbox_temp = sp_item_bbox_desktop((SPItem *)item);
 
968
    Geom::OptRect bbox;
969
969
    if (bbox_temp) {
970
970
        bbox = *bbox_temp;
971
971
        double doc_height    = sp_document_height(SP_ACTIVE_DOCUMENT);
1866
1866
    Geom::Matrix tf        = getODFTransform(item);
1867
1867
 
1868
1868
    //### Get ODF bounding box params for item
1869
 
    boost::optional<Geom::Rect> bbox = getODFBoundingBox(item);
 
1869
    Geom::OptRect bbox = getODFBoundingBox(item);
1870
1870
    if (!bbox) {
1871
1871
        return true;
1872
1872
    }