/[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 2754 by bramz, Thu Mar 1 12:42:59 2007 UTC revision 2755 by dpinte, Thu Apr 12 09:21:58 2007 UTC
# Line 583  class BaseRenderer: Line 583  class BaseRenderer:
583                  x, y = forward(x, y)                  x, y = forward(x, y)
584              x = int(round(x * scale + offx))              x = int(round(x * scale + offx))
585              y = int(round(-y * scale + offy))              y = int(round(-y * scale + offy))
586              width, height = self.dc.GetTextExtent(text.decode('iso-8859-1'))              width, height = self.dc.GetTextExtent(text)
587              if label.halign == ALIGN_LEFT:              if label.halign == ALIGN_LEFT:
588                  # nothing to be done                  # nothing to be done
589                  pass                  pass
# Line 598  class BaseRenderer: Line 598  class BaseRenderer:
598                  y = y - height                  y = y - height
599              elif label.valign == ALIGN_CENTER:              elif label.valign == ALIGN_CENTER:
600                  y = y - height/2                  y = y - height/2
601              self.dc.DrawText(text.decode('iso-8859-1'), x, y)              self.dc.DrawText(text, x, y)

Legend:
Removed from v.2754  
changed lines
  Added in v.2755

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26