aboutsummaryrefslogtreecommitdiff
path: root/MPChartLib/src/main/java/com/github/mikephil/charting/components/Legend.java
diff options
context:
space:
mode:
Diffstat (limited to 'MPChartLib/src/main/java/com/github/mikephil/charting/components/Legend.java')
-rw-r--r--MPChartLib/src/main/java/com/github/mikephil/charting/components/Legend.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/MPChartLib/src/main/java/com/github/mikephil/charting/components/Legend.java b/MPChartLib/src/main/java/com/github/mikephil/charting/components/Legend.java
index b7850988..70812925 100644
--- a/MPChartLib/src/main/java/com/github/mikephil/charting/components/Legend.java
+++ b/MPChartLib/src/main/java/com/github/mikephil/charting/components/Legend.java
@@ -703,8 +703,7 @@ public class Legend extends ComponentBase {
width += Utils.calcTextWidth(labelpaint, label);
- if (i < entryCount - 1)
- maxHeight += labelLineHeight + yEntrySpace;
+ maxHeight += labelLineHeight + yEntrySpace;
} else {
wasStacked = true;
width += formSize;