[poppler] qt6/src

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Dec 1 22:02:42 UTC 2022


 qt6/src/poppler-annotation.cc |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 54c93aade58b60699c0bf2c7962c274b6e6f7772
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu Dec 1 22:56:16 2022 +0100

    Qt6: Less deprecated functions

diff --git a/qt6/src/poppler-annotation.cc b/qt6/src/poppler-annotation.cc
index ed27a1f1..1a3c8130 100644
--- a/qt6/src/poppler-annotation.cc
+++ b/qt6/src/poppler-annotation.cc
@@ -2840,11 +2840,11 @@ AnnotStampImageHelper *StampAnnotationPrivate::convertQImageToAnnotStampImageHel
 
     AnnotStampImageHelper *annotImg;
 
-    if (sMaskData.count() > 0) {
-        AnnotStampImageHelper sMask(parentDoc->doc, width, height, ColorSpace::DeviceGray, 8, sMaskData.data(), sMaskData.count());
-        annotImg = new AnnotStampImageHelper(parentDoc->doc, width, height, colorSpace, bitsPerComponent, data.data(), data.count(), sMask.getRef());
+    if (sMaskData.size() > 0) {
+        AnnotStampImageHelper sMask(parentDoc->doc, width, height, ColorSpace::DeviceGray, 8, sMaskData.data(), sMaskData.size());
+        annotImg = new AnnotStampImageHelper(parentDoc->doc, width, height, colorSpace, bitsPerComponent, data.data(), data.size(), sMask.getRef());
     } else {
-        annotImg = new AnnotStampImageHelper(parentDoc->doc, width, height, colorSpace, bitsPerComponent, data.data(), data.count());
+        annotImg = new AnnotStampImageHelper(parentDoc->doc, width, height, colorSpace, bitsPerComponent, data.data(), data.size());
     }
 
     return annotImg;


More information about the poppler mailing list