summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/spritecanvas.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/vcl/spritecanvas.cxx')
-rw-r--r--canvas/source/vcl/spritecanvas.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx
index 9dc31332ef0c..bcfe42d91b48 100644
--- a/canvas/source/vcl/spritecanvas.cxx
+++ b/canvas/source/vcl/spritecanvas.cxx
@@ -145,7 +145,7 @@ namespace vclcanvas
// avoid repaints on hidden window (hidden: not mapped to
// screen). Return failure, since the screen really has _not_
// been updated (caller should try again later)
- return !mbIsVisible ? false : maCanvasHelper.updateScreen(bUpdateAll,
+ return !mbIsVisible && maCanvasHelper.updateScreen(bUpdateAll,
mbSurfaceDirty);
}