summaryrefslogtreecommitdiffstats
path: root/Project/MainFrame.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-04-11 20:00:20 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-04-11 20:00:20 -0300
commit2b7409b5dd3714d14112e40a1ead8776a6da1576 (patch)
tree5acb569c17b1730d3724f9731803c97b3cc69c09 /Project/MainFrame.cpp
parentaf070d92462ac5586aa6a0a80c51a8fa72710600 (diff)
downloadPSP.git-2b7409b5dd3714d14112e40a1ead8776a6da1576.tar.gz
PSP.git-2b7409b5dd3714d14112e40a1ead8776a6da1576.tar.xz
PSP.git-2b7409b5dd3714d14112e40a1ead8776a6da1576.zip
Some minor improvements
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r--Project/MainFrame.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp
index 7d129b4..5afff94 100644
--- a/Project/MainFrame.cpp
+++ b/Project/MainFrame.cpp
@@ -63,6 +63,7 @@ MainFrame::MainFrame(wxWindow* parent, wxLocale* locale, PropertiesData* initPro
m_auiNotebook->Layout();
newWorkspace->Redraw();
newWorkspace->SetJustOpened(true);
+ newWorkspace->Fit();
m_projectNumber++;
}
}
@@ -299,6 +300,7 @@ void MainFrame::OnOpenClick(wxRibbonButtonBarEvent& event)
m_auiNotebook->Layout();
newWorkspace->Redraw();
newWorkspace->SetJustOpened(true);
+ newWorkspace->Fit();
m_projectNumber++;
} else {
wxMessageDialog msgDialog(this, _("It was not possible to open the selected file."), _("Error"),