diff options
-rw-r--r-- | canvas/source/vcl/spritecanvashelper.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/canvas/source/vcl/spritecanvashelper.cxx b/canvas/source/vcl/spritecanvashelper.cxx index 29c3295e4b59..8d58f4fcb359 100644 --- a/canvas/source/vcl/spritecanvashelper.cxx +++ b/canvas/source/vcl/spritecanvashelper.cxx @@ -126,7 +126,10 @@ namespace vclcanvas { #if OSL_DEBUG_LEVEL > 0 // inverse defaults for verbose debug mode - mbShowSpriteBounds = mbShowFrameInfo = true; + mbShowFrameInfo = true; + // this looks like drawing errors, enable only if explicitly asked for + static bool enableShowSpriteBounds = getenv("CANVAS_SPRITE_BOUNDS") != nullptr; + mbShowSpriteBounds = enableShowSpriteBounds; #endif } |