View unanswered posts | View active topics It is currently Sat Apr 27, 2024 10:34 pm



Reply to topic  [ 2 posts ] 
(FIX) LabelSkip = 1 is broken 
Author Message
New pChart user
New pChart user

Joined: Sat Mar 19, 2011 8:28 am
Posts: 1
Post (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


Sat Mar 19, 2011 8:35 am
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post 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.


Wed Mar 23, 2011 11:36 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron