Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: richedit.cpp
|
// Name: samples/richtext/richtext.cpp
|
||||||
// Purpose: wxWidgets rich text editor sample
|
// Purpose: wxWidgets rich text editor sample
|
||||||
// Author: Julian Smart
|
// Author: Julian Smart
|
||||||
// Modified by:
|
// Modified by:
|
||||||
@@ -728,12 +728,10 @@ void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
if (!path.empty())
|
if (!path.empty())
|
||||||
{
|
{
|
||||||
int fileType = 0;
|
|
||||||
int filterIndex = dialog.GetFilterIndex();
|
int filterIndex = dialog.GetFilterIndex();
|
||||||
if (filterIndex < (int) fileTypes.GetCount())
|
int fileType = (filterIndex < (int) fileTypes.GetCount())
|
||||||
fileType = fileTypes[filterIndex];
|
? fileTypes[filterIndex]
|
||||||
else
|
: wxRICHTEXT_TYPE_TEXT;
|
||||||
fileType = wxRICHTEXT_TYPE_TEXT;
|
|
||||||
m_richTextCtrl->LoadFile(path, fileType);
|
m_richTextCtrl->LoadFile(path, fileType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user