◀ANSI版開発トップへ
  • 3495 共通設定:ファイル名表示の修正
  • [3495] 共通設定:ファイル名表示の修正 dskoba 2004年03月24日 23:39

    先頭のアイテムを選択して「上へ」を押すとアイテムが消えるのを修正
    (ついでに無駄な判定を修正)

    CPropCommon::MoveListViewItem_FILENAME() で

    -if( nIndex >= nCount - 1 ){
    +if( nIndex > nCount - 1 ){
    nIndex = nCount - 1;
    }
    -if( nIndex2 >= nCount - 1 ){
    +if( nIndex2 > nCount - 1 ){
    nIndex2 = nCount - 1;
    }
    +if( nIndex < 0 ){
    + nIndex = 0;
    +}
    +if( nIndex2 < 0 ){
    + nIndex2 = 0;
    +}
    if( nIndex == nIndex2 ){
    return -1;
    }