summaryrefslogtreecommitdiff
path: root/src/import.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-07 02:59:40 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-07 02:59:40 (GMT)
commitf73b8289f6db33713ae0f838649b47b56024f0ff (patch)
tree25bfcb21f98334551de15bcf83be476dc318def4 /src/import.cc
parent7bec474b34011dcb0c417ad09d6c84bd833f7535 (diff)
Correctly escape special characters in dumped strings. Fixes dumptest_import_dxf-tests
Diffstat (limited to 'src/import.cc')
-rw-r--r--src/import.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import.cc b/src/import.cc
index 230cab2..b77c120 100644
--- a/src/import.cc
+++ b/src/import.cc
@@ -228,8 +228,8 @@ std::string ImportNode::toString() const
std::stringstream stream;
stream << this->name();
- stream << "(file = \"" << this->filename << "\", "
- "layer = \"" << this->layername << "\", "
+ stream << "(file = " << this->filename << ", "
+ "layer = " << QuotedString(this->layername) << ", "
"origin = [" << std::dec << this->origin_x << ", " << this->origin_y << "], "
"scale = " << this->scale << ", "
"convexity = " << this->convexity << ", "
contact: Jan Huwald // Impressum