diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2011-03-13 14:25:50 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2011-03-13 14:25:50 +0000 |
| commit | e49d12a439484bead7cf99456d7b8ccb76055f50 (patch) | |
| tree | 9a94c5e2779fb98dfd198b24264ef2287ecb8608 /src/sp-shape.cpp | |
| parent | apparently bbox numbers in PS should be integers. (diff) | |
| download | inkscape-e49d12a439484bead7cf99456d7b8ccb76055f50.tar.gz inkscape-e49d12a439484bead7cf99456d7b8ccb76055f50.zip | |
make a strange cast more obvious
(bzr r10101)
Diffstat (limited to 'src/sp-shape.cpp')
| -rw-r--r-- | src/sp-shape.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index d9a47f76a..e9b0909ed 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -508,6 +508,8 @@ void SPShape::sp_shape_modified(SPObject *object, unsigned int flags) void SPShape::sp_shape_bbox(SPItem const *item, NRRect *bbox, Geom::Affine const &transform, unsigned const flags) { SPShape const *shape = SP_SHAPE (item); + SPItem::BBoxType bboxtype = (SPItem::BBoxType) flags; + if (shape->curve) { Geom::OptRect geombbox = bounds_exact_transformed(shape->curve->get_pathvector(), transform); if (geombbox) { @@ -517,7 +519,7 @@ void SPShape::sp_shape_bbox(SPItem const *item, NRRect *bbox, Geom::Affine const cbbox.x1 = (*geombbox)[0][1]; cbbox.y1 = (*geombbox)[1][1]; - switch ((SPItem::BBoxType) flags) { + switch (bboxtype) { case SPItem::GEOMETRIC_BBOX: { // do nothing break; |
