wxLogMessage(_T("Selection = '%s' (len = %u)"),
sel.c_str(),
(unsigned int) sel.length());
+
+ const wxString text = GetLineText(line);
+ wxLogMessage(_T("Current line: \"%s\"; length = %lu"),
+ text.c_str(), text.length());
}
break;
// a little hack to use the command line argument for encoding testing
if ( wxTheApp->argc == 2 )
{
- switch ( wxTheApp->argv[1][0] )
+ switch ( (wxChar)wxTheApp->argv[1][0] )
{
case '2':
m_horizontal->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxNORMAL,
alignment = wxT("left-aligned");
else if (attr.GetAlignment() == wxTEXT_ALIGNMENT_JUSTIFIED)
alignment = wxT("justified");
- msg.Printf(wxT("Facename: %s, wxColour(%d, %d, %d), %s"),
- (const wxChar*) facename,
+ msg.Printf( "Facename: %s, wxColour(%d, %d, %d), %s", facename,
attr.GetTextColour().Red(), attr.GetTextColour().Green(), attr.GetTextColour().Blue(),
- (const wxChar*) alignment);
+ alignment );
if (attr.HasFont())
{