/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/baserenderer.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/baserenderer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1934 by bh, Mon Nov 10 16:57:19 2003 UTC revision 1935 by bh, Tue Nov 11 18:16:20 2003 UTC
# Line 434  class BaseRenderer: Line 434  class BaseRenderer:
434          if not points:          if not points:
435              return              return
436    
437          radius = self.resolution * 5          radius = int(round(self.resolution * 5))
438          self.dc.SetBrush(brush)          self.dc.SetBrush(brush)
439          self.dc.SetPen(pen)          self.dc.SetPen(pen)
440          for part in points:          for part in points:
# Line 531  class BaseRenderer: Line 531  class BaseRenderer:
531              text = label.text              text = label.text
532              if forward:              if forward:
533                  x, y = forward(x, y)                  x, y = forward(x, y)
534              x = x * scale + offx              x = int(round(x * scale + offx))
535              y = -y * scale + offy              y = int(round(-y * scale + offy))
536              width, height = self.dc.GetTextExtent(text)              width, height = self.dc.GetTextExtent(text)
537              if label.halign == ALIGN_LEFT:              if label.halign == ALIGN_LEFT:
538                  # nothing to be done                  # nothing to be done

Legend:
Removed from v.1934  
changed lines
  Added in v.1935

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26