]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/gen_iface.py
Fixed apparent typo in wxGridCellAttr::MergeWith, hopefully fixing
[wxWidgets.git] / src / stc / gen_iface.py
index 82de85895bbe337bc4af03e7a473400896653005..3da52f8420ddf9b87657e49f3f37db9ab3d32fb4 100644 (file)
@@ -254,7 +254,7 @@ methodOverrideMap = {
                      TextToFind  ft;
                      ft.chrg.cpMin = minPos;
                      ft.chrg.cpMax = maxPos;
-                     wxWX2MBbuf buf = wx2stc(text);
+                     wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
                      ft.lpstrText = (char*)(const char*)buf;
 
                      return SendMsg(%s, flags, (long)&ft);''',
@@ -488,13 +488,13 @@ methodOverrideMap = {
     'AddRefDocument' : (0,
                        'void %s(void* docPointer);',
                        '''void %s(void* docPointer) {
-                           SendMsg(%s, (long)docPointer);''',
+                           SendMsg(%s, 0, (long)docPointer);''',
                         0),
 
     'ReleaseDocument' : (0,
                        'void %s(void* docPointer);',
                        '''void %s(void* docPointer) {
-                           SendMsg(%s, (long)docPointer);''',
+                           SendMsg(%s, 0, (long)docPointer);''',
                          0),
     'SetCodePage' : (0,
                      0,