/[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

trunk/thuban/Thuban/UI/baserenderer.py revision 2700 by dpinte, Mon Sep 18 14:27:02 2006 UTC branches/WIP-pyshapelib-bramz/Thuban/UI/baserenderer.py revision 2734 by bramz, Thu Mar 1 12:42:59 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)              width, height = self.dc.GetTextExtent(text.decode('iso-8859-1'))
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, x, y)              self.dc.DrawText(text.decode('iso-8859-1'), x, y)

Legend:
Removed from v.2700  
changed lines
  Added in v.2734

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26