vcl/source/image/ImplImage.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 573aa68c4114886870a0a0af1dfadf462fa2b34e
Author:     Maxim Monastirsky <momonas...@gmail.com>
AuthorDate: Tue Aug 18 17:52:46 2020 +0300
Commit:     Maxim Monastirsky <momonas...@gmail.com>
CommitDate: Wed Aug 19 10:35:28 2020 +0200

    Related: tdf#135369 Handle missing icons in ImplImage
    
    Don't see a reason for returning false only if the
    missing icon is of a command with arguments.
    
    Change-Id: I06caa806ee86212d436bbb5a4dae5ee8096e060b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100965
    Tested-by: Jenkins
    Reviewed-by: Maxim Monastirsky <momonas...@gmail.com>

diff --git a/vcl/source/image/ImplImage.cxx b/vcl/source/image/ImplImage.cxx
index 965b0e360b62..4465dd1687db 100644
--- a/vcl/source/image/ImplImage.cxx
+++ b/vcl/source/image/ImplImage.cxx
@@ -78,6 +78,12 @@ bool ImplImage::loadStockAtScale(double fScale, BitmapEx 
&rBitmapEx)
                 return false;
             }
         }
+        else
+        {
+            SAL_WARN("vcl", "Failed to load scaled image from " << maStockName 
<<
+                     " at " << fScale);
+            return false;
+        }
     }
     if (maPreferedSizePixel != Size())
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to