From 1af5f6e8d1bdec9bd2f14d0f5f8fad9c0fdead2b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 7 Sep 2017 10:54:22 +0100 Subject: set parent for file dialog helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3994ee48dcb5b2732cb27cb9ccb54926abf0828a Reviewed-on: https://gerrit.libreoffice.org/42048 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sd/source/ui/view/drviews2.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sd/source/ui/view') diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index cbfb9c01a6c0..cbd8088f8e8d 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -927,11 +927,11 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) const SdrGrafObj* pObj = dynamic_cast(rMarkList.GetMark(0)->GetMarkedSdrObj()); if (pObj && pObj->GetGraphicType() == GraphicType::Bitmap) { + vcl::Window* pWin = GetActiveWindow(); GraphicAttr aGraphicAttr = pObj->GetGraphicAttr(); short nState = RET_CANCEL; if (aGraphicAttr != GraphicAttr()) // the image has been modified { - vcl::Window* pWin = GetActiveWindow(); if (pWin) { nState = GraphicHelper::HasToSaveTransformedImage(pWin); @@ -944,12 +944,12 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) if (nState == RET_YES) { - GraphicHelper::ExportGraphic( pObj->GetTransformedGraphic(), "" ); + GraphicHelper::ExportGraphic(pWin, pObj->GetTransformedGraphic(), ""); } else if (nState == RET_NO) { GraphicObject aGraphicObject(pObj->GetGraphicObject()); - GraphicHelper::ExportGraphic( aGraphicObject.GetGraphic(), "" ); + GraphicHelper::ExportGraphic(pWin, aGraphicObject.GetGraphic(), ""); } } } -- cgit