Changeset 460 for trunk/src/gui/kernel


Ignore:
Timestamp:
Jan 21, 2010, 4:21:47 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: DnD: Fixed: The "container" part of the drag item representing the file name could lack the trailing slash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qmime_pm.cpp

    r459 r460  
    15461546        return fullName;
    15471547
    1548     fullName.resize(pathLen + nameLen);
     1548    // Take into account that the container name may lack the trailing slash
     1549    fullName.resize(pathLen + nameLen + 1);
     1550
    15491551    DrgQueryStrName(item->hstrContainerName, pathLen + 1, fullName.data());
     1552
     1553
     1554
     1555
     1556
    15501557    DrgQueryStrName(item->hstrSourceName, nameLen + 1, fullName.data() + pathLen);
     1558
     1559
    15511560
    15521561    return fullName;
Note: See TracChangeset for help on using the changeset viewer.