diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-06-12 02:22:39 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-06-12 13:20:04 +0000 |
commit | 12b73697ed5787a621910623d76a6e241b04bd1a (patch) | |
tree | 0d969e96c6df2534fd0b132a46a92383424759de /vcl/unx/generic/gdi/salvd.cxx | |
parent | 7dee641f675e7f472f5bec39cb92a1422fd1ffee (diff) |
in general this seems to make more sense
Change-Id: I00dfbaa9971e3ee589672e51bca07e8eddfdc167
Reviewed-on: https://gerrit.libreoffice.org/16238
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl/unx/generic/gdi/salvd.cxx')
-rw-r--r-- | vcl/unx/generic/gdi/salvd.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/unx/generic/gdi/salvd.cxx b/vcl/unx/generic/gdi/salvd.cxx index 0a5414638338..b0caab71ae5d 100644 --- a/vcl/unx/generic/gdi/salvd.cxx +++ b/vcl/unx/generic/gdi/salvd.cxx @@ -39,13 +39,11 @@ SalVirtualDevice* X11SalInstance::CreateX11VirtualDevice(SalGraphics* pGraphics, long &nDX, long &nDY, sal_uInt16 nBitCount, const SystemGraphicsData *pData, X11SalGraphics* pNewGraphics) { + assert(pNewGraphics); if (OpenGLHelper::isVCLOpenGLEnabled()) - return new X11OpenGLSalVirtualDevice( pGraphics, nDX, nDY, nBitCount, pData ); + return new X11OpenGLSalVirtualDevice( pGraphics, nDX, nDY, nBitCount, pData, pNewGraphics ); else - { - assert(pNewGraphics); return new X11SalVirtualDevice(pGraphics, nDX, nDY, nBitCount, pData, pNewGraphics); - } } SalVirtualDevice* X11SalInstance::CreateVirtualDevice(SalGraphics* pGraphics, |