diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-06 16:00:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-06 16:25:08 +0100 |
commit | 76d4db3181dfd1524620377bb12a8e0332ae8ab0 (patch) | |
tree | b046afd9d85f31806b690fd9ad657da7707bdb15 /sc | |
parent | f0859c4eae0f567393811c308074723329f1faab (diff) |
Resolves: fdo#80101 inserting non-chart as chart -> unhandled exception
Change-Id: I4d5438292d9a5c49f1336304ebd3dc4e155dd212
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabvwshb.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx index 289c7e85ce39..5e635b01fca9 100644 --- a/sc/source/ui/view/tabvwshb.cxx +++ b/sc/source/ui/view/tabvwshb.cxx @@ -306,6 +306,7 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq) break; case SID_INSERT_DIAGRAM_FROM_FILE: + try { sfx2::FileDialogHelper aDlg(ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, 0, OUString("com.sun.star.chart2.ChartDocument")); @@ -316,6 +317,10 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq) FuInsertChartFromFile(this, pWin, pView, pDrModel, rReq, aURL); } } + catch (const uno::Exception& e) + { + SAL_WARN( "sc", "Cannot Insert Chart: " << e.Message); + } break; case SID_OBJECTRESIZE: |