projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the current font for the DoGetBestSize calculation
[wxWidgets.git]
/
src
/
common
/
docmdi.cpp
diff --git
a/src/common/docmdi.cpp
b/src/common/docmdi.cpp
index 14980bf532cbc1bf00d77605aaf82db9863d0092..77b81cabbcb27639c20ead1614eec466aff65cf9 100644
(file)
--- a/
src/common/docmdi.cpp
+++ b/
src/common/docmdi.cpp
@@
-67,8
+67,8
@@
void wxDocMDIParentFrame::Init()
void wxDocMDIParentFrame::OnMRUFile(wxCommandEvent& event)
{
void wxDocMDIParentFrame::OnMRUFile(wxCommandEvent& event)
{
-
wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1));
-
if (f != wxT(""
))
+ wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1));
+
if (!f.empty(
))
(void)m_docManager->CreateDocument(f, wxDOC_SILENT);
}
(void)m_docManager->CreateDocument(f, wxDOC_SILENT);
}