summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-09-05 17:24:33 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-09-05 20:06:21 +0200
commit629a9d68eeadd1f1349c97c0131c7d1d55ad867b (patch)
tree827a6ff375f7c387525f69dc6bb54af8778c4d68
parente830f2a041271f4af65dabb2d8c0968b7f3bac6e (diff)
drawinglayer: getHeight() -> getWidth()
Since 01ded1e6d362dbcd7148334c6965d6ad00981d4a "WMF tdf#55058 tdf#142722 Add implementation of BitBlt and StretchBlt" Change-Id: Ib99e940c954fe44f2dbee2b14dfa9d2c79468500 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172919 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
-rw-r--r--drawinglayer/source/tools/primitive2dxmldump.cxx2
-rw-r--r--emfio/qa/cppunit/emf/EmfImportTest.cxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/drawinglayer/source/tools/primitive2dxmldump.cxx b/drawinglayer/source/tools/primitive2dxmldump.cxx
index 527889cd7399..61c9f5ca447a 100644
--- a/drawinglayer/source/tools/primitive2dxmldump.cxx
+++ b/drawinglayer/source/tools/primitive2dxmldump.cxx
@@ -707,7 +707,7 @@ void Primitive2dXmlDump::decomposeAndWrite(
{
rWriter.startElement("data");
OUString aBitmapData = u""_ustr;
- for (tools::Long x = 0; x < rSizePixel.getHeight(); x++)
+ for (tools::Long x = 0; x < rSizePixel.getWidth(); x++)
{
if (x != 0)
aBitmapData = aBitmapData + ",";
diff --git a/emfio/qa/cppunit/emf/EmfImportTest.cxx b/emfio/qa/cppunit/emf/EmfImportTest.cxx
index ddb37d9dd085..71ae6b80fbee 100644
--- a/emfio/qa/cppunit/emf/EmfImportTest.cxx
+++ b/emfio/qa/cppunit/emf/EmfImportTest.cxx
@@ -146,7 +146,8 @@ CPPUNIT_TEST_FIXTURE(Test, testDrawImagePointsTypeBitmap)
"ffffff,fbfbfb,fefefe,ffffff,fcfcfc,ffffff,fdfdfd,ffffff,ffffff,ffffff,ffffff,fbfbfb,"
"010101,ffffff,fefefe,ffffff,ffffff,ffffff,fcfcfc,ffffff,fafafa,ffffff,ffffff,fefefe,"
"ffffff,fdfdfd,fefefe,fefefe,ffffff,ffffff,fdfdfd,fffbfb,1e0000,8f4347,b13a3e,b82d32,"
- "bb3438,b73237,b63338,b33035,b63338"_ustr);
+ "bb3438,b73237,b63338,b33035,b63338,b83338,b9313b,b9313b,b83239,b83338,b63338,b53438,"
+ "b63539,b53335,ba3236,a2393e,1c0000"_ustr);
}
CPPUNIT_TEST_FIXTURE(Test, testDrawString)