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:
parent
af7303013f
commit
a7b7eb1ea5
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user