diff --git a/src/exportvector.cpp b/src/exportvector.cpp index 594816d..4dcf685 100644 --- a/src/exportvector.cpp +++ b/src/exportvector.cpp @@ -750,8 +750,10 @@ const char *DxfFileWriter::lineTypeName(StipplePattern stippleType) { case StipplePattern::FREEHAND: case StipplePattern::ZIGZAG: /* no corresponding DXF line type */ - return "CONTINUOUS"; + break; } + + return "CONTINUOUS"; } //----------------------------------------------------------------------------- diff --git a/src/style.cpp b/src/style.cpp index 459d2f8..b3e913e 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -303,7 +303,8 @@ Canvas::Stroke Style::Stroke(hStyle hs) { } Canvas::Stroke Style::Stroke(int hsv) { - return Style::Stroke(hStyle{hsv}); + hStyle hs = { (uint32_t) hsv }; + return Style::Stroke(hs); } //-----------------------------------------------------------------------------