summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-04-19 17:38:14 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-04-19 17:55:59 +0200
commit3057b5cdb989d44613518900b25ebad8b7c600a2 (patch)
tree3728b14d1925d3c53a7e8424ff92e742ffbac2f2 /sd/source
parent024d2fde2aae13b07cf5c7b4d85fc3c6abce6913 (diff)
Related: tdf#99396 sd: make table controller undo code unit-testable
With these it's possible to create a table controller with the unit test user profile (that lacks .ui files) + also the sd undo stack can be asserted. Change-Id: I48f09e4bb985c32227deed736cd158dec9f4f315
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/table/TableDesignPane.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx
index 064fb2c50821..5e06d2cacb96 100644
--- a/sd/source/ui/table/TableDesignPane.cxx
+++ b/sd/source/ui/table/TableDesignPane.cxx
@@ -807,7 +807,15 @@ short TableDesignDialog::Execute()
VclPtr<vcl::Window> createTableDesignPanel( vcl::Window* pParent, ViewShellBase& rBase )
{
- return VclPtr<TableDesignPane>::Create( pParent, rBase );
+ VclPtr<TableDesignPane> pRet = nullptr;
+ try
+ {
+ pRet = VclPtr<TableDesignPane>::Create( pParent, rBase );
+ }
+ catch (const uno::Exception& rException)
+ {
+ }
+ return pRet;
}
void showTableDesignDialog( vcl::Window* pParent, ViewShellBase& rBase )