bug fix. The wxCharBuffer was being destroyed before it was used.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -254,7 +254,8 @@ methodOverrideMap = {
|
|||||||
TextToFind ft;
|
TextToFind ft;
|
||||||
ft.chrg.cpMin = minPos;
|
ft.chrg.cpMin = minPos;
|
||||||
ft.chrg.cpMax = maxPos;
|
ft.chrg.cpMax = maxPos;
|
||||||
ft.lpstrText = (char*)(const char*)wx2stc(text);
|
wxWX2MBbuf buf = wx2stc(text);
|
||||||
|
ft.lpstrText = (char*)(const char*)buf;
|
||||||
|
|
||||||
return SendMsg(%s, flags, (long)&ft);''',
|
return SendMsg(%s, flags, (long)&ft);''',
|
||||||
0),
|
0),
|
||||||
|
@@ -951,7 +951,8 @@ int wxStyledTextCtrl::FindText(int minPos, int maxPos,
|
|||||||
TextToFind ft;
|
TextToFind ft;
|
||||||
ft.chrg.cpMin = minPos;
|
ft.chrg.cpMin = minPos;
|
||||||
ft.chrg.cpMax = maxPos;
|
ft.chrg.cpMax = maxPos;
|
||||||
ft.lpstrText = (char*)(const char*)wx2stc(text);
|
wxWX2MBbuf buf = wx2stc(text);
|
||||||
|
ft.lpstrText = (char*)(const char*)buf;
|
||||||
|
|
||||||
return SendMsg(2150, flags, (long)&ft);
|
return SendMsg(2150, flags, (long)&ft);
|
||||||
}
|
}
|
||||||
|
@@ -254,7 +254,8 @@ methodOverrideMap = {
|
|||||||
TextToFind ft;
|
TextToFind ft;
|
||||||
ft.chrg.cpMin = minPos;
|
ft.chrg.cpMin = minPos;
|
||||||
ft.chrg.cpMax = maxPos;
|
ft.chrg.cpMax = maxPos;
|
||||||
ft.lpstrText = (char*)(const char*)wx2stc(text);
|
wxWX2MBbuf buf = wx2stc(text);
|
||||||
|
ft.lpstrText = (char*)(const char*)buf;
|
||||||
|
|
||||||
return SendMsg(%s, flags, (long)&ft);''',
|
return SendMsg(%s, flags, (long)&ft);''',
|
||||||
0),
|
0),
|
||||||
|
@@ -951,7 +951,8 @@ int wxStyledTextCtrl::FindText(int minPos, int maxPos,
|
|||||||
TextToFind ft;
|
TextToFind ft;
|
||||||
ft.chrg.cpMin = minPos;
|
ft.chrg.cpMin = minPos;
|
||||||
ft.chrg.cpMax = maxPos;
|
ft.chrg.cpMax = maxPos;
|
||||||
ft.lpstrText = (char*)(const char*)wx2stc(text);
|
wxWX2MBbuf buf = wx2stc(text);
|
||||||
|
ft.lpstrText = (char*)(const char*)buf;
|
||||||
|
|
||||||
return SendMsg(2150, flags, (long)&ft);
|
return SendMsg(2150, flags, (long)&ft);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user