diff options
| author | Mikko Syrjä <mikko@3d-system.fi> | 2019-03-07 00:41:33 +0200 |
|---|---|---|
| committer | Mikko Syrjä <mikko@3d-system.fi> | 2019-03-07 00:41:33 +0200 |
| commit | 2cebcfa3e208cdf4af5bdf77a6d14ab079e8126a (patch) | |
| tree | b189f816738bf273c20aa1c59128ebec835ef5c2 /symbol.cpp | |
| parent | 152ca5fa1b949b822a6548181ba3ecf769926522 (diff) | |
| download | symedit-2cebcfa3e208cdf4af5bdf77a6d14ab079e8126a.tar.gz symedit-2cebcfa3e208cdf4af5bdf77a6d14ab079e8126a.zip | |
Compilation and help fixes.
Diffstat (limited to 'symbol.cpp')
| -rw-r--r-- | symbol.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); |
