diff options
author | offtkp <parisoplop@gmail.com> | 2022-08-09 23:24:58 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-08-19 10:24:43 +0200 |
commit | d5472c797df5831bb95650ad8f3c0cf94512b819 (patch) | |
tree | 8f5362278a11d87071eed147bdc7701fdb247bbc /vcl/qa/cppunit/GraphicTest.cxx | |
parent | 45705461d4597b736c44e006360f9072eed3fe85 (diff) |
Remove code duplication in GraphicDescriptor for WMF/EMF
GraphicFormatDetector and GraphicDescriptor have duplicate format
detection code so now GraphicDescriptor uses GraphicFormatDetector
functions instead to detect the format for WMF/EMF files and their Z
compressed counterparts WMZ/EMZ
Change-Id: Ia054c782320923aaa0c2c8bda2f33c27c3b123d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138067
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qa/cppunit/GraphicTest.cxx')
-rw-r--r-- | vcl/qa/cppunit/GraphicTest.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/GraphicTest.cxx b/vcl/qa/cppunit/GraphicTest.cxx index d5a38d70ccad..378bc7a7b55b 100644 --- a/vcl/qa/cppunit/GraphicTest.cxx +++ b/vcl/qa/cppunit/GraphicTest.cxx @@ -512,7 +512,7 @@ void GraphicTest::testEmfToWmfConversion() aGraphicStream.Seek(0); vcl::GraphicFormatDetector aDetector(aGraphicStream, OUString()); CPPUNIT_ASSERT(aDetector.detect()); - CPPUNIT_ASSERT(aDetector.checkWMForEMF()); + CPPUNIT_ASSERT(aDetector.checkWMF()); // Without the accompanying fix in place, this test would have failed with: // - Expected: WMF |