diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh1.cxx | 6 | ||||
-rw-r--r-- | sw/uiconfig/swriter/ui/autoformattable.ui | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index 59962673e9ef..12a2c158da63 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -375,8 +375,10 @@ void SwWrtShell::InsertObject( const svt::EmbeddedObjectRef& xRef, SvGlobalName OString aCmd(".uno:"); aCmd += pSlot->GetUnoName(); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); - ScopedVclPtr<SfxAbstractInsertObjectDialog> pDlg( pFact->CreateInsertObjectDialog( GetWin(), OUString::fromUtf8( aCmd ), xStor, &aServerList )); - if ( pDlg ) + vcl::Window* pWin = GetWin(); + ScopedVclPtr<SfxAbstractInsertObjectDialog> pDlg(pFact->CreateInsertObjectDialog(pWin ? pWin->GetFrameWeld() : nullptr, + OUString::fromUtf8( aCmd ), xStor, &aServerList)); + if (pDlg) { pDlg->Execute(); bDoVerb = pDlg->IsCreateNew(); diff --git a/sw/uiconfig/swriter/ui/autoformattable.ui b/sw/uiconfig/swriter/ui/autoformattable.ui index 1d9a6eb4f8be..84539082ac5c 100644 --- a/sw/uiconfig/swriter/ui/autoformattable.ui +++ b/sw/uiconfig/swriter/ui/autoformattable.ui @@ -6,6 +6,8 @@ <columns> <!-- column-name text --> <column type="gchararray"/> + <!-- column-name id --> + <column type="gchararray"/> </columns> </object> <object class="GtkDialog" id="AutoFormatTableDialog"> |