diff options
-rw-r--r-- | svgio/inc/svgmarkernode.hxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgmarkernode.cxx | 6 | ||||
-rw-r--r-- | svgio/source/svgreader/svgstyleattributes.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/svgio/inc/svgmarkernode.hxx b/svgio/inc/svgmarkernode.hxx index 23d768cc8f7b..61098a35b740 100644 --- a/svgio/inc/svgmarkernode.hxx +++ b/svgio/inc/svgmarkernode.hxx @@ -31,7 +31,7 @@ namespace svgio class SvgMarkerNode : public SvgNode { public: - enum MarkerUnits + enum class MarkerUnits { strokeWidth, userSpaceOnUse diff --git a/svgio/source/svgreader/svgmarkernode.cxx b/svgio/source/svgreader/svgmarkernode.cxx index 2e33fa640c50..35ac4fff1662 100644 --- a/svgio/source/svgreader/svgmarkernode.cxx +++ b/svgio/source/svgreader/svgmarkernode.cxx @@ -32,7 +32,7 @@ namespace svgio maSvgAspectRatio(), maRefX(0), maRefY(0), - maMarkerUnits(strokeWidth), + maMarkerUnits(MarkerUnits::strokeWidth), maMarkerWidth(3), maMarkerHeight(3), mfAngle(0.0), @@ -106,11 +106,11 @@ namespace svgio { if(aContent.startsWith("strokeWidth")) { - setMarkerUnits(strokeWidth); + setMarkerUnits(MarkerUnits::strokeWidth); } else if(aContent.match(commonStrings::aStrUserSpaceOnUse)) { - setMarkerUnits(userSpaceOnUse); + setMarkerUnits(MarkerUnits::userSpaceOnUse); } } break; diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 3bd5dac3c483..7780d8aa4e5f 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -832,7 +832,7 @@ namespace svgio { double fTargetWidth(rMarker.getMarkerWidth().isSet() ? rMarker.getMarkerWidth().solve(mrOwner, xcoordinate) : 3.0); double fTargetHeight(rMarker.getMarkerHeight().isSet() ? rMarker.getMarkerHeight().solve(mrOwner, xcoordinate) : 3.0); - const bool bStrokeWidth(SvgMarkerNode::strokeWidth == rMarker.getMarkerUnits()); + const bool bStrokeWidth(SvgMarkerNode::MarkerUnits::strokeWidth == rMarker.getMarkerUnits()); const double fStrokeWidth(getStrokeWidth().isSet() ? getStrokeWidth().solve(mrOwner) : 1.0); if(bStrokeWidth) |