diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbxcolorupdate.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbxcolorupdate.cxx b/svx/source/tbxctrls/tbxcolorupdate.cxx index 4b8048059a3f..00efa3cdab35 100644 --- a/svx/source/tbxctrls/tbxcolorupdate.cxx +++ b/svx/source/tbxctrls/tbxcolorupdate.cxx @@ -22,6 +22,7 @@ #include <svx/svxids.hrc> #include <svx/xdef.hxx> +#include <vcl/svapp.hxx> #include <vcl/toolbox.hxx> #include <vcl/virdev.hxx> #include <vcl/settings.hxx> @@ -85,7 +86,8 @@ namespace svx if (!aItemSize.Width() || !aItemSize.Height()) return; - ScopedVclPtr<VirtualDevice> pVirDev(VclPtr<VirtualDevice>::Create()); + ScopedVclPtr<VirtualDevice> pVirDev(VclPtr<VirtualDevice>::Create(*Application::GetDefaultDevice(), + DeviceFormat::DEFAULT, DeviceFormat::DEFAULT)); pVirDev->SetOutputSizePixel(aItemSize); maBmpSize = aItemSize; |