Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2013-12-04 23:25:46 +0400
committerLluis Sanchez <lluis@xamarin.com>2013-12-04 23:25:46 +0400
commit9466a7a325655039c6e8edfb0a63dc5aca37ad25 (patch)
treea1cc3701f9dd493b775b57bdf40d7c7e2d1933d9 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
parent9e34b311a80186122a0d16d854fd309b2e7b9a6c (diff)
parent41edf4fb7f050eb62ffdbf99bef8caec1852f98c (diff)
Merge branch 'master' into retina
Conflicts: main/src/addins/CBinding/CBinding.csproj main/src/addins/CSharpBinding/CSharpBinding.csproj main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs version-checks
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
index 3dd61d9caa..dd359726ee 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
@@ -228,7 +228,12 @@ namespace MonoDevelop.Ide.Commands
{
protected override void Run ()
{
- IdeApp.Workbench.ActiveDocument.GetContent<IPrintable> ().PrintPreviewDocument (PrintingSettings.Instance);
+ try {
+ IdeApp.Workbench.ActiveDocument.GetContent<IPrintable> ().PrintPreviewDocument (PrintingSettings.Instance);
+ } catch (Exception e) {
+ LoggingService.LogError ("Error while generating the print preview", e);
+ MessageService.ShowError (GettextCatalog.GetString ("Error while generating the print preview"), e.Message);
+ }
}
protected override void Update (CommandInfo info)