Changeset 5908 for trunk/src


Ignore:
Timestamp:
Jun 5, 2001, 10:39:23 AM (24 years ago)
Author:
sandervl
Message:

Listview: Don't repaint subitem if changed text is the same as old one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/listview.c

    r5811 r5908  
    23722372            lpSubItem->pszText = NULL;
    23732373          }
    2374 
     2374#ifdef __WIN32OS2__
     2375          else {
     2376             //No need to change anything if text is the same
     2377             if(lpSubItem->pszText && !strcmp(lpSubItem->pszText, lpLVItem->pszText)) {
     2378                 return FALSE;
     2379             }
     2380          }
     2381#endif
    23752382          bResult = Str_SetPtrA(&lpSubItem->pszText, lpLVItem->pszText);
    23762383        }
     
    27412748          }
    27422749
     2750#ifdef __WIN32OS2__
     2751          if(bResult) {
     2752#endif
    27432753          rcItem.left = LVIR_BOUNDS;
    27442754      LISTVIEW_GetItemRect(hwnd, lpLVItem->iItem, &rcItem);
    27452755      InvalidateRect(hwnd, &rcItem, FALSE);
     2756#ifdef __WIN32OS2__
     2757          }
     2758#endif
    27462759        }
    27472760      }
Note: See TracChangeset for help on using the changeset viewer.