summaryrefslogtreecommitdiff
path: root/src/dxflinextrude.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dxflinextrude.cc')
-rw-r--r--src/dxflinextrude.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/dxflinextrude.cc b/src/dxflinextrude.cc
index ca98b66..8bb246f 100644
--- a/src/dxflinextrude.cc
+++ b/src/dxflinextrude.cc
@@ -144,13 +144,17 @@ std::string DxfLinearExtrudeNode::toString() const
{
std::stringstream stream;
- stream << this->name() << "("
- "file = \"" << this->filename << "\", "
- "cache = \"" << QFileInfo(QString::fromStdString(this->filename)) << "\", "
- "layer = \"" << this->layername << "\", "
+ stream << this->name() << "(";
+ if (!this->filename.empty()) { // Ignore deprecated parameters if empty
+ stream <<
+ "file = \"" << this->filename << "\", "
+ "cache = \"" << QFileInfo(QString::fromStdString(this->filename)) << "\", "
+ "layer = \"" << this->layername << "\", "
+ "origin = [ " << this->origin_x << " " << this->origin_y << " ], "
+ "scale = " << this->scale << ", ";
+ }
+ stream <<
"height = " << std::dec << this->height << ", "
- "origin = [ " << this->origin_x << " " << this->origin_y << " ], "
- "scale = " << this->scale << ", "
"center = " << (this->center?"true":"false") << ", "
"convexity = " << this->convexity;
contact: Jan Huwald // Impressum