]> git.saurik.com Git - wxWidgets.git/commitdiff
fix (?) for error in wxCSConv::LoadNow()
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jul 2001 15:38:33 +0000 (15:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jul 2001 15:38:33 +0000 (15:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index 45d35990403f3f68be150d2f2e14aeb2b618e266..92699a8c3a073509f513972ef766efcaa78071ac 100644 (file)
@@ -776,7 +776,8 @@ void wxCSConv::LoadNow()
                 SetName(name);
         }
 
-        m_cset = wxGetCharacterSet(m_name);
+        // wxGetCharacterSet() complains about NULL name
+        m_cset = m_name ? wxGetCharacterSet(m_name) : NULL;
         m_deferred = FALSE;
     }
 }