summaryrefslogtreecommitdiff
path: root/vcl/source/image
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2020-08-18 17:52:46 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2020-08-19 10:35:28 +0200
commit573aa68c4114886870a0a0af1dfadf462fa2b34e (patch)
tree99aeb2b805fc34d44ff39ccb039204a3db92dbb2 /vcl/source/image
parent00fa759dc9f13eb4618a7762be9ca6eaf3fd37f7 (diff)
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 <momonasmon@gmail.com>
Diffstat (limited to 'vcl/source/image')
-rw-r--r--vcl/source/image/ImplImage.cxx6
1 files changed, 6 insertions, 0 deletions
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())
{