summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/gdi/gdiimpl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx
index 4b3b128b7442..7f8672f07735 100644
--- a/vcl/unx/generic/gdi/gdiimpl.cxx
+++ b/vcl/unx/generic/gdi/gdiimpl.cxx
@@ -152,8 +152,8 @@ X11SalGraphicsImpl::~X11SalGraphicsImpl()
void X11SalGraphicsImpl::Init()
{
- mnPenPixel = mrParent.GetPixel( *moPenColor );
- mnBrushPixel = mrParent.GetPixel( *moBrushColor );
+ mnPenPixel = moPenColor ? mrParent.GetPixel(*moPenColor) : 0;
+ mnBrushPixel = moBrushColor ? mrParent.GetPixel(*moBrushColor) : 0;
}
XID X11SalGraphicsImpl::GetXRenderPicture()