- Timestamp:
- 08/16/11 03:01:39 (13 years ago)
- File:
-
- 1 edited
-
ps/trunk/source/gui/CInput.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/gui/CInput.cpp
r9658 r10011 790 790 { 791 791 CStrW *pCaption = (CStrW*)m_Settings["caption"].m_pSetting; 792 793 if (pCaption->length() == 0) 794 break; 795 792 796 m_iBufferPos = m_iBufferPos_Tail = GetMouseHoveringTextPosition(); 797 798 799 if (m_iBufferPos >= pCaption->length()) 800 m_iBufferPos = m_iBufferPos_Tail = pCaption->length() - 1; 801 793 802 794 803 // See if we are clicking over whitespace … … 831 840 break; 832 841 } 842 843 if (m_iBufferPos_Tail == pCaption->length()) 844 break; 845 833 846 // now go to the right until we hit whitespace or punctuation 834 847 while (++m_iBufferPos_Tail < (int)pCaption->length()) … … 846 859 break; 847 860 } 861 862 if (m_iBufferPos_Tail == pCaption->length()) 863 break; 848 864 849 865 // Don't include the leading whitespace
Note:
See TracChangeset
for help on using the changeset viewer.
