[Libreoffice-commits] core.git: drawinglayer/source
Chris Sherlock (via logerrit)
logerrit at kemper.freedesktop.org
Sat Dec 14 20:12:35 UTC 2019
drawinglayer/source/tools/emfphelperdata.cxx | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
New commits:
commit 261b91a043d85f6b902145d208a6f63a10050b67
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
AuthorDate: Wed Dec 4 19:40:30 2019 +1100
Commit: Bartosz Kosiorek <gang65 at poczta.onet.pl>
CommitDate: Sat Dec 14 21:11:44 2019 +0100
drawinglayer: log UnitType enum
Change-Id: I5b13150e60109c0ede11c52940eeb10d2ba8e4e7
Reviewed-on: https://gerrit.libreoffice.org/84454
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65 at poczta.onet.pl>
diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx
index f0c84dc34ec2..f29f470cec3b 100644
--- a/drawinglayer/source/tools/emfphelperdata.cxx
+++ b/drawinglayer/source/tools/emfphelperdata.cxx
@@ -51,7 +51,6 @@
namespace emfplushelper
{
-
const char* emfTypeToName(sal_uInt16 type)
{
switch (type)
@@ -161,6 +160,21 @@ namespace emfplushelper
return "";
}
+ static OUString UnitTypeToString(sal_uInt16 nType)
+ {
+ switch (nType)
+ {
+ case UnitTypeWorld: return "UnitTypeWorld";
+ case UnitTypeDisplay: return "UnitTypeDisplay";
+ case UnitTypePixel: return "UnitTypePixel";
+ case UnitTypePoint: return "UnitTypePoint";
+ case UnitTypeInch: return "UnitTypeInch";
+ case UnitTypeDocument: return "UnitTypeDocument";
+ case UnitTypeMillimeter: return "UnitTypeMillimeter";
+ }
+ return "";
+ }
+
EMFPObject::~EMFPObject()
{
}
@@ -1575,7 +1589,7 @@ namespace emfplushelper
case EmfPlusRecordTypeSetPageTransform:
{
rMS.ReadFloat(mfPageScale);
- SAL_INFO("drawinglayer", "EMF+\tscale: " << mfPageScale << " unit: " << flags);
+ SAL_INFO("drawinglayer", "EMF+\tscale: " << mfPageScale << " unit: " << UnitTypeToString(flags));
if ((flags == UnitTypeDisplay) || (flags == UnitTypeWorld))
{
More information about the Libreoffice-commits
mailing list