pChart 2.x forum
http://wiki.pchart.net/forum/

(FIX) LabelSkip = 1 is broken
http://wiki.pchart.net/forum/viewtopic.php?f=5&t=343
Page 1 of 1

Author:  boissier [ Sat Mar 19, 2011 8:35 am ]
Post subject:  (FIX) LabelSkip = 1 is broken

It should skip every other label, but it doesn't (version 2.1.0).
I believe the fix is to change the following 2 lines in pDraw.class.php:

$LabelSkip = isset($Format["LabelSkip"]) ? $Format["LabelSkip"] : 1;
should be:
$LabelSkip = isset($Format["LabelSkip"]) ? $Format["LabelSkip"] : 0;

AND

if ( $LabelingMethod == LABELING_ALL && $LabelSkip == 1 ) { return(TRUE); }
should be:
if ( $LabelingMethod == LABELING_ALL && $LabelSkip == 0 ) { return(TRUE); }

Guillaume

Author:  jean-damien [ Wed Mar 23, 2011 11:36 am ]
Post subject:  Re: (FIX) LabelSkip = 1 is broken

Good morning Guillaume,

You've found a bug and the correct fix ;o)

Thank you very much. I've made the change in the next minor version that will be published soon.

Kind regards,
JD.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/