Project

General

Profile

« Previous | Next » 

Revision 501

Fixed an unicode problem on gantt (first letter of the day name)

View differences:

trunk/app/views/projects/gantt.rfpdf
89 89
		width = zoom
90 90
		pdf.SetY(y_start + 2 * header_heigth)
91 91
		pdf.SetX(left)
92
		pdf.Cell(width, height, day_name(wday)[0,1], "LTR", 0, "C")
92
		pdf.Cell(width, height, day_name(wday).first, "LTR", 0, "C")
93 93
		left = left + width
94 94
		wday = wday + 1
95 95
		wday = 1 if wday > 7
trunk/app/views/projects/gantt.rhtml
162 162
	width =  zoom - 1
163 163
	%>
164 164
	<div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>" class="gantt_hdr">
165
	<%= day_name(wday)[0,1] %>
165
	<%= day_name(wday).first %>
166 166
	</div>
167 167
	<% 
168 168
	left = left + width+1

Also available in: Unified diff