summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-09 13:12:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-09 13:13:30 +0200
commit2defbbd3e448758fb150ed4f8cd3d7afd0f0fdf2 (patch)
tree12eedaddbfa074d1ca2f08dec3c45c6c38703d56 /cui
parent6f511f1dec1fe4a5bc6d6e2dc116eb9886c24bda (diff)
fix "replace Bitmap usage with VirtualDevice in ColorSliderControl"
commit 7116b9cc2f3ee28b4444540d0c14183b9bd17968 Change-Id: I40d7f88fa76c620abd8838a0dd525e67eeeb747b
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/colorpicker.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index e049d7283b44..eb34b074f503 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -661,6 +661,7 @@ void ColorSliderControl::UpdateBitmap()
return;
mxBitmap.disposeAndClear();
+ mxBitmap = VclPtr<VirtualDevice>::Create();
mxBitmap->SetOutputSizePixel(aSize);
const long nY = aSize.Height() - 1;