aboutsummaryrefslogtreecommitdiff
path: root/symbol.cpp
diff options
context:
space:
mode:
authorMikko Syrjä <mikko@3d-system.fi>2019-03-07 00:41:33 +0200
committerMikko Syrjä <mikko@3d-system.fi>2019-03-07 00:41:33 +0200
commit2cebcfa3e208cdf4af5bdf77a6d14ab079e8126a (patch)
treeb189f816738bf273c20aa1c59128ebec835ef5c2 /symbol.cpp
parent152ca5fa1b949b822a6548181ba3ecf769926522 (diff)
downloadsymedit-2cebcfa3e208cdf4af5bdf77a6d14ab079e8126a.tar.gz
symedit-2cebcfa3e208cdf4af5bdf77a6d14ab079e8126a.zip
Compilation and help fixes.
Diffstat (limited to 'symbol.cpp')
-rw-r--r--symbol.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/symbol.cpp b/symbol.cpp
index 499a44c..5233497 100644
--- a/symbol.cpp
+++ b/symbol.cpp
@@ -70,6 +70,8 @@ void SymEditSymbol::Load(const QString& buffer)
Items.push_back(Item(Operation::Line, position, QPoint(x, y), fill));
else if ( type == 'B' )
Items.push_back(Item(Operation::Rectangle, position, QPoint(x, y), fill));
+ else if ( type == 'H' )
+ Items.push_back(Item(Operation::Arc, position, QPoint(x, y), fill));
position = QPoint(x, y);
}
else // single parameter
@@ -151,7 +153,12 @@ QString& SymEditSymbol::Save(QString& buffer) const
}
case Operation::Arc:
{
- //##
+ if ( item.Fill != fill )
+ fill = appendoption('F', buffer, item.Fill);
+ if ( item.Point != position )
+ appendvalue(buffer.append('U'), item.Point, 2);
+ appendvalue(buffer.append('H'), item.Value, 1);
+ position = item.Point;
break;
}
default: assert(0);