This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit acd35af94aabb9ee57fe0462fbff966831aed253
Author: Kim Woelders <[email protected]>
AuthorDate: Sun Dec 14 17:24:30 2025 +0100

    XPM loader: Add missing progress callback on incomplete image data
---
 src/modules/loaders/loader_xpm.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/modules/loaders/loader_xpm.c b/src/modules/loaders/loader_xpm.c
index 37487f2..e38493c 100644
--- a/src/modules/loaders/loader_xpm.c
+++ b/src/modules/loaders/loader_xpm.c
@@ -454,11 +454,17 @@ _load(ImlibImage *im, int load_data)
     if (!im->data || !cmap)
         goto quit;
 
-    for (; count < pixels; count++)
+    if (count < pixels)
     {
-        /* Fill in missing pixels
-         * (avoid working with uninitialized data in bad xpms) */
-        im->data[count] = cmap[0].pixel;
+        for (; count < pixels; count++)
+        {
+            /* Fill in missing pixels
+             * (avoid working with uninitialized data in bad xpms) */
+            im->data[count] = cmap[0].pixel;
+        }
+
+        if (im->lc)
+            __imlib_LoadProgressRows(im, last_row, im->h);
     }
 
     rc = LOAD_SUCCESS;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to