Applied patch [ 605592 ] Unicode patch for dirctrlg.cpp
Markus Greither just compiled the wxWindows CVS trunk using BCC5.5.1 and UNICODE. I noticed a small bug in girctrlg.cpp, that prevented compilation. There are more such glitches in the wxGrid, but as I was running out of time, I disabled this for now. Otherwise, compilation worked fine and I was able to run the minimal sample (using UNICOWS on my WIN98SE). (I also corrected some wxGrid Unicode string typos -- JACS) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -340,7 +340,7 @@ wxGridCellAutoWrapStringRenderer::GetTextLines(wxGrid& grid,
|
||||
|
||||
dc.SetFont(attr.GetFont());
|
||||
wxStringTokenizer tk(data , _T(" \n\t\r"));
|
||||
wxString thisline("");
|
||||
wxString thisline(wxT(""));
|
||||
|
||||
while ( tk.HasMoreTokens() )
|
||||
{
|
||||
@@ -381,7 +381,7 @@ wxGridCellAutoWrapStringRenderer::GetBestSize(wxGrid& grid,
|
||||
wxRect rect(0,0,width,10);
|
||||
|
||||
// M is a nice large character 'y' gives descender!.
|
||||
dc.GetTextExtent("My", &x, &y);
|
||||
dc.GetTextExtent(wxT("My"), &x, &y);
|
||||
|
||||
do
|
||||
{
|
||||
|
Reference in New Issue
Block a user