Don't export shapes which are not visible at the default image scale.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24486 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-03-20 11:00:27 +00:00
parent af7303013f
commit a7b7eb1ea5

View File

@ -201,6 +201,13 @@ convert_cap_mode_svg(agg::line_cap_e mode)
status_t
SVGExporter::_ExportShape(const Shape* shape, BPositionIO* stream)
{
if (shape->MaxVisibilityScale() < 1.0
|| shape->MinVisibilityScale() > 1.0) {
// don't export shapes which are not visible at the
// default scale
return B_OK;
}
const Style* style = shape->Style();
char color[64];