01444cc8270b4517efcb2060d2814e025325d5f1,cellprofiler/gui/metadatactrl.py,MetadataControl,hit_test,#MetadataControl#Any#,335

Before Change


        x = self.xoffset
        for i, token in enumerate(self.__tokens):
            text = self.get_text(i, i+1)
            x += self.GetTextExtent(text)[0]
            if x > pos:
                if isinstance(token, self.MetadataToken):
                    return i
                if pos - last > x-pos:

After Change


        event.Skip()
    
    def hit_test(self, pos):
        text = self.get_text(0, len(self.__tokens))
        dc = wx.ClientDC(self)
        dc.Font = self.Font
        positions = self.get_positions(dc)
        del dc
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 01444cc8270b4517efcb2060d2814e025325d5f1
Time: 2010-11-18
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/metadatactrl.py
Class Name: MetadataControl
Method Name: hit_test


Project Name: CellProfiler/CellProfiler
Commit Name: 1f6d1aa5eb7d4c31960e7b2aba04d94439956a49
Time: 2010-07-06
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/metadatactrl.py
Class Name: MetadataControl
Method Name: OnPaint


Project Name: CellProfiler/CellProfiler
Commit Name: 01444cc8270b4517efcb2060d2814e025325d5f1
Time: 2010-11-18
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/metadatactrl.py
Class Name: MetadataControl
Method Name: OnPaint