Things brings the Win32 code into line with the Unix code.

Andrew.

-- 
http://linguaphile.sourceforge.net
Index: src/wp/ap/win/ap_Win32Dialog_Spell.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/ap/win/ap_Win32Dialog_Spell.cpp,v
retrieving revision 1.6
diff -u -r1.6 ap_Win32Dialog_Spell.cpp
--- src/wp/ap/win/ap_Win32Dialog_Spell.cpp      2001/02/06 22:54:54     1.6
+++ src/wp/ap/win/ap_Win32Dialog_Spell.cpp      2001/04/12 20:54:13
@@ -217,7 +217,7 @@
        FREEP(p);
 
        // insert suggestions
-       if (!m_Suggestions.count) 
+       if (!m_Suggestions->getItemCount()) 
        {
                const XAP_StringSet * pSS = m_pApp->getStringSet();
                SendMessage(m_hwndSuggest, LB_ADDSTRING, 0, (LPARAM) 
pSS->getValue(AP_STRING_ID_DLG_Spell_NoSuggestions));
@@ -227,9 +227,9 @@
        } 
        else 
        {
-               for (int i = 0; i < m_Suggestions.count; i++)
+               for (int i = 0; i < m_Suggestions->getItemCount(); i++)
                {
-                       p = (UT_UCSChar *) m_Suggestions.word[i];
+                       p = (UT_UCSChar *) m_Suggestions->getNthItem(i);
                        len = UT_UCS_strlen(p);
                        if (len)
                        {
@@ -258,7 +258,7 @@
        // should be safe here, because there just aren't that many suggestions 
        m_iSelectedRow = (short) SendMessage(m_hwndSuggest, LB_GETCURSEL, 0, 0);
 
-       if (!m_Suggestions.count) 
+       if (!m_Suggestions->getItemCount()) 
        {
                // no change to suggest, ignore it
                if (m_iSelectedRow != -1)
@@ -313,7 +313,7 @@
 
        if (m_iSelectedRow != -1)
        {
-               replace = (UT_UCSChar*) m_Suggestions.word[m_iSelectedRow];
+               replace = (UT_UCSChar*) m_Suggestions->getNthItem(m_iSelectedRow);
                changeWordWith(replace);
        }
        else
@@ -336,7 +336,7 @@
        UT_UCSChar * replace = NULL;
        if (m_iSelectedRow != -1)
        {
-               replace = (UT_UCSChar*) m_Suggestions.word[m_iSelectedRow];
+               replace = (UT_UCSChar*) m_Suggestions->getNthItem(m_iSelectedRow);
                addChangeAll(replace);
                changeWordWith(replace);
        }

Reply via email to