Changeset 2511

Show
Ignore:
Timestamp:
11/18/08 08:04:07 (7 weeks ago)
Author:
bzr
Message:

IAccessible NVDAObject's positionInfo property: only include indexInGroup and similarItemsInGroup if they are sane values (they are greater than 0 and similarItemsInGroup is greater or equal to indexInGroup). Should be no noticable change for normal controls, but this should stop any other possible broken ones from reporting bad info.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk

    • Property bzr:revision-info
      •  

        old new  
        1 timestamp: 2008-11-18 17:33:09.489000082 +1000 
        2 committer: James Teh <jamie@jantrid.net> 
         1timestamp: 2008-11-18 19:03:18.627000093 +1100 
         2committer: Michael Curran <mick@kulgan.net> 
        33properties:  
        44        branch-nick: main 
    • Property bzr:revision-id:v3-list-QlpoOTFBWSZTWbrL2vUAAB1VgAAQABCAQDrrnqAgAFCgaaGRkxBoTIJ6mmaNRwhndFAoNhZjh_YY4a01fOg1ulgNNC2UrzPdXXEnDpX8XckU4UJC6y9r1A..
      •  

        old new  
        2802802308 mick@kulgan.net-20081118055723-kt92pexgf6vuc62d 
        2812812309 jamie@jantrid.net-20081118073309-8zv0dy0iepb9yo3v 
         2822310 mick@kulgan.net-20081118080318-p40niae6lvo4iq0w 
    • Property bzr:file-ids
      •  

        old new  
        1 source/NVDAObjects/IAccessible/sysTreeView32.py 834@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FNVDAObjects%2FIAccessible%2FsysTreeView32.py 
        2 source/speech.py        503@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2Fspeech.py 
         1source/NVDAObjects/IAccessible/__init__.py      683@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FNVDAObjects%2FIAccessible%2F__init__.py 
  • trunk/source/NVDAObjects/IAccessible/__init__.py

    r2507 r2511  
    695695                if groupPosition[0]: 
    696696                        info['level']=groupPosition[0] 
    697                 if groupPosition[1]: 
     697                if groupPosition[2]>0 and groupPosition[1]>=groupPosition[2]: 
    698698                        info['similarItemsInGroup']=groupPosition[1] 
    699                 if groupPosition[2]: 
    700699                        info['indexInGroup']=groupPosition[2] 
    701700                return info