Skip to content

Commit

Permalink
fix algo to keep extra_text separate from other entries in multi-pane…
Browse files Browse the repository at this point in the history
…l KLegend
  • Loading branch information
kpedro88 committed Apr 22, 2015
1 parent 6676256 commit a95eb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KCode/KLegend.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class KLegend{
//keep extra text and real legend entries separate
//only when entries are being automatically split between panels
if(!set_panels){
for(unsigned t = 0; t < npanel - extra_text.size()%npanel; t++){
for(unsigned t = 0; t < (npanel - extra_text.size()%npanel)%npanel; t++){
if(panel_ctr%npanel==0) panel_ctr = 0;
AddEntry((TObject*)NULL,"","",panel_ctr);
panel_ctr++;
Expand Down

0 comments on commit a95eb4c

Please sign in to comment.