Update of /cvsroot/easycalc/easycalc
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv19541
Modified Files:
grtable.c
Log Message:
Correct heading in table mode for polar plots.
Index: grtable.c
===================================================================
RCS file: /cvsroot/easycalc/easycalc/grtable.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** grtable.c 22 Sep 2006 20:04:47 -0000 1.23
--- grtable.c 20 Nov 2006 03:05:07 -0000 1.24
***************
*** 82,101 ****
WinSetClip(bounds);
! if (row==0) {
oldfont = FntSetFont(boldFont);
-
if (column == 0) {
if (graphPrefs.functype == graph_func)
! text = "x";
else if (graphPrefs.functype == graph_polar)
! text = "r";
else
! text = "T";
! WinDrawChars(text,1,bounds->topLeft.x,bounds->topLeft.y);
! }
else {
text2 = grsetup_fn_descr(column+firstCol-1);
! WinDrawChars(text2,StrLen(text2),bounds->topLeft.x,
! bounds->topLeft.y);
}
--- 82,100 ----
WinSetClip(bounds);
! if (row == 0) {
oldfont = FntSetFont(boldFont);
if (column == 0) {
if (graphPrefs.functype == graph_func)
! text = "x";
else if (graphPrefs.functype == graph_polar)
! text = "t";
else
! text = "T";
! WinDrawChars(text, 1, bounds->topLeft.x, bounds->topLeft.y);
! }
else {
text2 = grsetup_fn_descr(column+firstCol-1);
! WinDrawChars(text2, StrLen(text2), bounds->topLeft.x,
! bounds->topLeft.y);
}
***************
*** 116,121 ****
}
else /* func and polar */
! stack = graphCurves[column+firstCol-1].stack1;
! if (stack){
func_get_value(stack,firstVisible+rowStep*(row-1),
&val,NULL);
--- 115,120 ----
}
else /* func and polar */
! stack = graphCurves[column+firstCol-1].stack1;
! if (stack) {
func_get_value(stack,firstVisible+rowStep*(row-1),
&val,NULL);
|