From a7b7eb1ea50d2e9f4da7f0f711314bc06983a2fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 20 Mar 2008 11:00:27 +0000 Subject: [PATCH] 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 --- src/apps/icon-o-matic/import_export/svg/SVGExporter.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/apps/icon-o-matic/import_export/svg/SVGExporter.cpp b/src/apps/icon-o-matic/import_export/svg/SVGExporter.cpp index 7e11eab972..8c02ff7ee6 100644 --- a/src/apps/icon-o-matic/import_export/svg/SVGExporter.cpp +++ b/src/apps/icon-o-matic/import_export/svg/SVGExporter.cpp @@ -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];