summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-07-23 10:00:32 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2020-07-23 11:15:23 +0200
commit7667525aa78b803b52b62b1bbb907c2822692e89 (patch)
treeac74f5a6fcf920b1ef737c8f61216c41929a757f /vcl
parent5fdf2009d21fa220dfee70ea755bd698c16257a7 (diff)
Describe intended usage
Change-Id: Id2314304a42f762553ac6bb1d15fe80bee653b25 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99207 Tested-by: Tor Lillqvist <tml@collabora.com> Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/bitmap/bitmap.cxx2
1 files changed, 2 insertions, 0 deletions
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)
{