Kaydet (Commit) dadd4abd authored tarafından Markus Mohrhard's avatar Markus Mohrhard
üst bb9c9fdd
...@@ -2377,8 +2377,12 @@ SfxChildWinInfo SvxSearchDialogWrapper::GetInfo() const ...@@ -2377,8 +2377,12 @@ SfxChildWinInfo SvxSearchDialogWrapper::GetInfo() const
static vcl::Window* lcl_GetSearchLabelWindow() static vcl::Window* lcl_GetSearchLabelWindow()
{ {
SfxViewFrame* pViewFrame = SfxViewFrame::Current();
if (!pViewFrame)
return nullptr;
css::uno::Reference< css::beans::XPropertySet > xPropSet( css::uno::Reference< css::beans::XPropertySet > xPropSet(
SfxViewFrame::Current()->GetFrame().GetFrameInterface(), css::uno::UNO_QUERY_THROW); pViewFrame->GetFrame().GetFrameInterface(), css::uno::UNO_QUERY_THROW);
css::uno::Reference< css::frame::XLayoutManager > xLayoutManager; css::uno::Reference< css::frame::XLayoutManager > xLayoutManager;
xPropSet->getPropertyValue("LayoutManager") >>= xLayoutManager; xPropSet->getPropertyValue("LayoutManager") >>= xLayoutManager;
css::uno::Reference< css::ui::XUIElement > xUIElement = css::uno::Reference< css::ui::XUIElement > xUIElement =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment