summaryrefslogtreecommitdiff
path: root/remotebridges/README.md
diff options
context:
space:
mode:
authorHossein <hossein@libreoffice.org>2022-04-05 14:07:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-04-06 16:41:57 +0200
commitf385661ec1463053c1ca51dc50db075c478de87c (patch)
tree253ba0bcc0b9b4f0d76490055699b89be122990f /remotebridges/README.md
parent4e8d6ccf97e29e5ea14e0d074074606f12040f36 (diff)
tdf#148359 Fix emfio regression: missing emf image
This patch fixes tdf#148359 which prevented the display of EMF images embedded in the rtf files or even loading when loading them directly. Looking into the problem caused by the cleanup commit 3e7dd04dd8ca1baea4b7918eb7a7080c595c4625, it became visible that while enums were converted to enum class, there was a cast that was wrongly ommited: - sal_uInt16 nStockId = static_cast<sal_uInt8>(nIndex); + StockObject nStockId = static_cast<StockObject>(nIndex); Now, it is re-written as: StockObject nStockId = static_cast<StockObject>(nIndex & 0xFF); The symptom was that the StockObject field was mishandled, and thus the shapes were displayed in white, instead of black. "Stock Logical Object" is discussed in the MS document for EMF: * [MS-EMF] v20210625 - pages 44, 45 and 182 A unit test is provided to make sure that the regression does not happen again. The test can be run by: make CPPUNIT_TEST_NAME=testStockObject -sr CppunitTest_emfio_wmf Change-Id: I9a7f1008e92a96d9fb12aeb7bd057af828c1722a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132540 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'remotebridges/README.md')
0 files changed, 0 insertions, 0 deletions