File tree 1 file changed +29
-13
lines changed
1 file changed +29
-13
lines changed Original file line number Diff line number Diff line change @@ -926,6 +926,20 @@ function line($params)
926
926
parent ::line ($ params );
927
927
}
928
928
929
+ /**
930
+ * Get the line thickness
931
+ *
932
+ * @param mixed $lineStyle The line style to return the thickness of,
933
+ * false if the one explicitly set
934
+ *
935
+ * @return float A line thickness
936
+ * @access private
937
+ */
938
+ function _getLineThickness ($ lineStyle = false )
939
+ {
940
+ return $ this ->_thickness ;
941
+ }
942
+
929
943
/**
930
944
* Parameter array:
931
945
*
@@ -1079,20 +1093,22 @@ function polygon($params)
1079
1093
}
1080
1094
} else {
1081
1095
$ prev_point = false ;
1082
- if ($ this ->_antialias === 'driver ' ) {
1083
- reset ($ polygon );
1084
- while (list (, $ x ) = each ($ polygon )) {
1085
- list (, $ y ) = each ($ polygon );
1086
- if ($ prev_point ) {
1087
- $ this ->_antialiasedLine (
1088
- $ prev_point ['X ' ],
1089
- $ prev_point ['Y ' ],
1090
- $ x ,
1091
- $ y ,
1092
- $ lineColor
1093
- );
1096
+ if ($ this ->_getLineThickness () !== '0 ' ) {
1097
+ if ($ this ->_antialias === 'driver ' && $ this ->_getLineThickness () == '' ) {
1098
+ reset ($ polygon );
1099
+ while (list (, $ x ) = each ($ polygon )) {
1100
+ list (, $ y ) = each ($ polygon );
1101
+ if ($ prev_point ) {
1102
+ $ this ->_antialiasedLine (
1103
+ $ prev_point ['X ' ],
1104
+ $ prev_point ['Y ' ],
1105
+ $ x ,
1106
+ $ y ,
1107
+ $ lineColor
1108
+ );
1109
+ }
1110
+ $ prev_point = array ('X ' => $ x , 'Y ' => $ y );;
1094
1111
}
1095
- $ prev_point = array ('X ' => $ x , 'Y ' => $ y );;
1096
1112
}
1097
1113
} elseif (($ line = $ this ->_getLineStyle ($ lineColor )) !== false ) {
1098
1114
reset ($ polygon );
You can’t perform that action at this time.
0 commit comments