]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/ownerdrw.cpp
Fix for crash when opening empty node
[wxWidgets.git] / src / os2 / ownerdrw.cpp
index d5d0db57c3c65a008f10754800aed9dfbe6c0c51..12790b51ceb709c55bece245e4f9b07bcc1d2e0c 100644 (file)
@@ -351,7 +351,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC,
     ::GpiCharStringAt( rDC.GetHPS()
                       ,&vPntStart
                       ,sFullString.length()
-                      ,sFullString.wx_str()
+                      ,sFullString.char_str()
                      );
     if (bFoundMnemonic)
     {
@@ -389,7 +389,7 @@ bool wxOwnerDrawn::OnDrawItem( wxDC& rDC,
         ::GpiCharStringAt( rDC.GetHPS()
                           ,&vPntStart
                           ,sAccel.length()
-                          ,sAccel.wx_str()
+                          ,sAccel.char_str()
                          );
     }