summaryrefslogtreecommitdiff
path: root/src/svg.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-10-28 18:01:10 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-10-28 18:01:10 (GMT)
commitec41b7e4321986140bffdb87ca7efefb1d57f881 (patch)
treebd9e580562d814d06ac9a1718efdbf296bbc52e0 /src/svg.cc
parent0473a0eff3ccaaf8632c41b4ee9ced2fd716ed3a (diff)
move failure-detection so there is only one reset of error behavior.
Diffstat (limited to 'src/svg.cc')
-rw-r--r--src/svg.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svg.cc b/src/svg.cc
index f30e4b8..cbc5695 100644
--- a/src/svg.cc
+++ b/src/svg.cc
@@ -8,10 +8,10 @@ namespace OpenSCAD {
// SVG code
// currently for debugging, not necessarily pretty or useful for users. (yet)
-std::string svg_header()
+std::string svg_header( int widthpx, int heightpx )
{
std::stringstream out;
- out << "<svg width='" << svg_px_width << "px' height='" << svg_px_height << "px'"
+ out << "<svg width='" << widthpx << "px' height='" << heightpx << "px'"
<< " xmlns='http://www.w3.org/2000/svg' version='1.1'>";
return out.str();
}
contact: Jan Huwald // Impressum