]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/ogl/mfutils.cpp
Use the OOR typemap for wxTreeCtrls too.
[wxWidgets.git] / contrib / src / ogl / mfutils.cpp
index 75fd4cdfd1e5e41c22d1e86e36191e70dab46004..a565739380b8194bbb034d9b51c4f423ae749755 100644 (file)
@@ -381,8 +381,8 @@ bool wxXMetaFile::ReadFile(char *file)
       {
         wxMetaRecord *rec = new wxMetaRecord(META_TEXTOUT);
         int count = getshort(handle);
-        rec->stringParam = new char[count+1];
-        fread((void *)rec->stringParam, sizeof(char), count, handle);
+        rec->stringParam = new wxChar[count+1];
+        fread((void *)rec->stringParam, sizeof(wxChar), count, handle);
         rec->stringParam[count] = 0;
         rec->param2 = getshort(handle); // Y
         rec->param1 = getshort(handle); // X