diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2019-12-10 11:37:06 +1100 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2019-12-22 10:23:26 +0100 |
commit | 494e6a082c0186d7e54bc718439f79ed29471614 (patch) | |
tree | 994af2213b783f2ac9563676b71ea7d5bbfa1554 | |
parent | 2d5442dd1181ad0d261fe642a483383df6500848 (diff) |
drawinglayer: improve logging - LineJoinTypeToString()
Change-Id: Ib6ae6350fe61b3c0d787ad19ff55baa6487d63da
Reviewed-on: https://gerrit.libreoffice.org/84835
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
-rw-r--r-- | drawinglayer/source/tools/emfppen.cxx | 14 | ||||
-rw-r--r-- | drawinglayer/source/tools/emfppen.hxx | 8 |
2 files changed, 21 insertions, 1 deletions
diff --git a/drawinglayer/source/tools/emfppen.cxx b/drawinglayer/source/tools/emfppen.cxx index 14d1951c9fa9..dc78d1140e5e 100644 --- a/drawinglayer/source/tools/emfppen.cxx +++ b/drawinglayer/source/tools/emfppen.cxx @@ -136,6 +136,18 @@ namespace emfplushelper return ""; } + static OUString LineJoinTypeToString(sal_uInt32 jointype) + { + switch (jointype) + { + case LineJoinTypeMiter: return "LineJoinTypeMiter"; + case LineJoinTypeBevel: return "LineJoinTypeBevel"; + case LineJoinTypeRound: return "LineJoinTypeRound"; + case LineJoinTypeMiterClipped: return "LineJoinTypeMiterClipped"; + } + return ""; + } + /// Convert stroke caps between EMF+ and rendering API sal_Int8 EMFPPen::lcl_convertStrokeCap(sal_uInt32 nEmfStroke) { @@ -213,7 +225,7 @@ namespace emfplushelper if (penDataFlags & PenDataJoin) { s.ReadInt32(lineJoin); - SAL_WARN("drawinglayer", "EMF+\t\t TODO PenDataJoin: 0x" << std::hex << lineJoin); + SAL_WARN("drawinglayer", "EMF+\t\tTODO PenDataJoin: " << LineJoinTypeToString(lineJoin) << " (0x" << std::hex << lineJoin << ")"); } else { diff --git a/drawinglayer/source/tools/emfppen.hxx b/drawinglayer/source/tools/emfppen.hxx index 7f255fd7b172..6a528ecc8ced 100644 --- a/drawinglayer/source/tools/emfppen.hxx +++ b/drawinglayer/source/tools/emfppen.hxx @@ -69,6 +69,14 @@ namespace emfplushelper LineCapTypeCustom = 0x000000FF }; + enum LineJoinType + { + LineJoinTypeMiter = 0x00000000, + LineJoinTypeBevel = 0x00000001, + LineJoinTypeRound = 0x00000002, + LineJoinTypeMiterClipped = 0x00000003 + }; + struct EMFPCustomLineCap; struct EMFPPen : public EMFPBrush |