From a06b1d7c3974b9ff5039ff106f49d019ecd6fda4 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Wed, 19 Jul 2006 13:58:51 +0000 Subject: [PATCH] Fixed SD2-922: RegEx window not restoring its size after been maximized git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1598 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- src/Main/Base/Project/Src/Gui/FormLocationHelper.cs | 4 +++- .../Project/Src/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Main/Base/Project/Src/Gui/FormLocationHelper.cs b/src/Main/Base/Project/Src/Gui/FormLocationHelper.cs index f0c6494fb5..f2378bd8fd 100644 --- a/src/Main/Base/Project/Src/Gui/FormLocationHelper.cs +++ b/src/Main/Base/Project/Src/Gui/FormLocationHelper.cs @@ -28,7 +28,9 @@ namespace ICSharpCode.SharpDevelop.Gui } form.Closing += delegate { if (isResizable) { - PropertyService.Set(propertyName, form.Bounds); + if (form.WindowState == FormWindowState.Normal) { + PropertyService.Set(propertyName, form.Bounds); + } } else { PropertyService.Set(propertyName, form.Location); } diff --git a/src/Main/Base/Project/Src/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs b/src/Main/Base/Project/Src/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs index 9df2344f9f..2fe41cf128 100644 --- a/src/Main/Base/Project/Src/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs +++ b/src/Main/Base/Project/Src/Gui/Workbench/Layouts/SdiWorkspaceWindow.cs @@ -328,7 +328,6 @@ namespace ICSharpCode.SharpDevelop.Gui if (e.Action == TabControlAction.Selected && e.TabPageIndex >= 0) { IBaseViewContent secondaryViewContent = GetSubViewContent(e.TabPageIndex); if (secondaryViewContent != null) { - secondaryViewContent.Deselected(); secondaryViewContent.SwitchedTo(); secondaryViewContent.Selected(); }