From c27a76910e5e5a129a8b1f62e166ec1ffa9cf28b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 17 Dec 2017 14:02:39 +0100 Subject: [PATCH] CPictureViewer: add current image into debug line It's not possible to see which file causes this error. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/fc2629eec5f0a11540ca37a771bc50e0f249741b Author: Thilo Graf Date: 2017-12-17 (Sun, 17 Dec 2017) ------------------ This commit was generated by Migit --- src/driver/pictureviewer/pictureviewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/pictureviewer/pictureviewer.cpp b/src/driver/pictureviewer/pictureviewer.cpp index 90947fe39..1afb445a4 100644 --- a/src/driver/pictureviewer/pictureviewer.cpp +++ b/src/driver/pictureviewer/pictureviewer.cpp @@ -629,7 +629,7 @@ void CPictureViewer::rescaleImageDimensions(int *width, int *height, const int m bool CPictureViewer::DisplayImage(const std::string & name, int posx, int posy, int width, int height, int transp) { if(width < 1 || height < 1){ - dprintf(DEBUG_NORMAL, "[CPictureViewer] [%s - %d] Error: width %i height %i \n", __func__, __LINE__, width, height); + dprintf(DEBUG_NORMAL, "[CPictureViewer] [%s - %d] Error: image [%s] width %i height %i \n", __func__, __LINE__, name.c_str(), width, height); return false; }