diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-23 17:33:39 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-23 17:36:23 +0200 |
commit | 77b320118b4ce837d038d6cb8eabb1d959010ae8 (patch) | |
tree | 64ffe32dd14378f1e036774ec156ad00ebabafc1 /sc | |
parent | 5befa0c5c28bce987eb862e7c5bb11abdf8fe81d (diff) |
we need to map 100th mm to pixel also for the import
Change-Id: I09084d67283b10e024ed926dc0e8d38030d28713
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabvwsh4.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index 01c171df774d..7a3a35f42c13 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -545,10 +545,11 @@ void ScTabViewShell::AddOpenGLChartWindows() OpenGLWindow* pOpenGLWindow = new OpenGLWindow(pParentWindow); pOpenGLWindow->Show(false); Size aSize = itr->second.GetSize(); + Size aWindowSize = pOpenGLWindow->LogicToPixel( aSize, MapMode( MAP_100TH_MM ) ); - pOpenGLWindow->SetSizePixel(aSize); + pOpenGLWindow->SetSizePixel(aWindowSize); Point aPos = itr->second.TopLeft(); - pOpenGLWindow->SetPosPixel(aPos); + pOpenGLWindow->SetPosPixel(pOpenGLWindow->LogicToPixel(aPos, MapMode(MAP_100TH_MM))); pParentWindow->AddChildWindow(pOpenGLWindow); uno::Reference< chart2::X3DChartWindowProvider > x3DWindowProvider( itr->first, uno::UNO_QUERY_THROW ); sal_uInt64 nWindowPtr = reinterpret_cast<sal_uInt64>(pOpenGLWindow); |