From 2cebcfa3e208cdf4af5bdf77a6d14ab079e8126a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikko=20Syrj=C3=A4?= Date: Thu, 7 Mar 2019 00:41:33 +0200 Subject: Compilation and help fixes. --- symbol.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'symbol.cpp') 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); -- cgit v1.2.3