diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-02 08:36:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-05 08:21:46 +0200 |
commit | 65ca57a447bae97714b1b32aa2df5705215a95ad (patch) | |
tree | 9b62f8fb4a890d5fcba13abc446b3244e9c5232f /drawinglayer | |
parent | a881fd7e66294ada222e1d618a7d47a0549a2342 (diff) |
convert LineStyle to scoped enum
Change-Id: I30cfa5a0649b806604c443f55683d1f2a430983d
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/metafileprimitive2d.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx index cf4182cbbd44..4407647a7e24 100644 --- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx @@ -658,7 +658,7 @@ namespace { if(rLinePolygon.count()) { - const bool bDashDotUsed(LINE_DASH == rLineInfo.GetStyle()); + const bool bDashDotUsed(LineStyle::Dash == rLineInfo.GetStyle()); const bool bWidthUsed(rLineInfo.GetWidth() > 1); if(bDashDotUsed || bWidthUsed) diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index 37218e020bda..d35d7804b8a9 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -1228,7 +1228,7 @@ namespace drawinglayer impStartSvtGraphicStroke(pSvtGraphicStroke); const attribute::LineAttribute& rLine = rStrokePrimitive.getLineAttribute(); - // create MetaPolyLineActions, but without LINE_DASH + // create MetaPolyLineActions, but without LineStyle::Dash if(basegfx::fTools::more(rLine.getWidth(), 0.0)) { const attribute::StrokeAttribute& rStroke = rStrokePrimitive.getStrokeAttribute(); @@ -1251,7 +1251,7 @@ namespace drawinglayer aHairLinePolyPolygon.transform(maCurrentTransformation); // use the transformed line width - LineInfo aLineInfo(LINE_SOLID, basegfx::fround(getTransformedLineWidth(rLine.getWidth()))); + LineInfo aLineInfo(LineStyle::Solid, basegfx::fround(getTransformedLineWidth(rLine.getWidth()))); aLineInfo.SetLineJoin(rLine.getLineJoin()); aLineInfo.SetLineCap(rLine.getLineCap()); |