diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-08-17 17:19:09 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-08-22 10:52:58 +0200 |
commit | 77dab2ac3a4dfdc6f51fdfc31078fb828e8164fa (patch) | |
tree | b10c64d0f0cf6bd5a2bec0177299a60771493026 /vcl/qa | |
parent | 83f2a294fde74e968a564fe69cce0e85c86b3543 (diff) |
vcl: Fix dumping meta file layout flags to XML
These are bit flags, so we were always writing #0000, so now it does
bitwise check for the flags and while at it write the names of the flags
not the numeric values.
Change-Id: I13cae38c0e549b2da1f834a264e3a3255bfa5c5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155793
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/svm/svmtest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/svm/svmtest.cxx b/vcl/qa/cppunit/svm/svmtest.cxx index 5161f4cce960..d89f2f93118d 100644 --- a/vcl/qa/cppunit/svm/svmtest.cxx +++ b/vcl/qa/cppunit/svm/svmtest.cxx @@ -2298,11 +2298,11 @@ void SvmTest::checkLayoutMode(const GDIMetaFile& rMetaFile) xmlDocUniquePtr pDoc = dumpMeta(rMetaFile); assertXPathAttrs(pDoc, "/metafile/layoutmode[1]", { - {"textlayout", "#0004"} + {"textlayout", "TextOriginLeft"} }); assertXPathAttrs(pDoc, "/metafile/layoutmode[2]", { - {"textlayout", "#0001"} + {"textlayout", "BiDiRtl"} }); } |