]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/strconv.cpp
set GtkRcStyle::text to fg colour too to allow changing the text colour in single...
[wxWidgets.git] / src / common / strconv.cpp
index f442e54dcd595e15998e5e0a67473c55e0e07b04..bd0a0926c3eaae36e22d52a78be4537886a48ea5 100644 (file)
@@ -3518,6 +3518,19 @@ void wxCSConv::CreateConvIfNeeded() const
     }
 }
 
+bool wxCSConv::IsOk() const
+{
+    CreateConvIfNeeded();
+
+    // special case: no convReal created for wxFONTENCODING_ISO8859_1
+    if ( m_encoding == wxFONTENCODING_ISO8859_1 )
+        return true; // always ok as we do it ourselves
+
+    // m_convReal->IsOk() is called at its own creation, so we know it must
+    // be ok if m_convReal is non-NULL
+    return m_convReal != NULL;
+}
+
 size_t wxCSConv::ToWChar(wchar_t *dst, size_t dstLen,
                          const char *src, size_t srcLen) const
 {