[Libreoffice-commits] core.git: vcl/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 23 09:16:11 UTC 2020
vcl/source/bitmap/bitmap.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 7667525aa78b803b52b62b1bbb907c2822692e89
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Jul 23 10:00:32 2020 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Jul 23 11:15:23 2020 +0200
Describe intended usage
Change-Id: Id2314304a42f762553ac6bb1d15fe80bee653b25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99207
Tested-by: Tor Lillqvist <tml at collabora.com>
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx
index 0dae9d5ace4f..4da73a65d3cc 100644
--- a/vcl/source/bitmap/bitmap.cxx
+++ b/vcl/source/bitmap/bitmap.cxx
@@ -135,6 +135,8 @@ Bitmap::~Bitmap()
#ifdef DBG_UTIL
// VCL_DUMP_BMP_PATH should be like C:/bmpDump.png or ~/bmpDump.png
static const OUString sDumpPath(OUString::createFromAscii(std::getenv("VCL_DUMP_BMP_PATH")));
+ // Stepping into the dtor of a bitmap you need, and setting the volatile variable to true in
+ // debugger, would dump the bitmap in question
static volatile bool save(false);
if (!sDumpPath.isEmpty() && save)
{
More information about the Libreoffice-commits
mailing list