We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5edd3f commit eb8f43dCopy full SHA for eb8f43d
src/Rectangle.php
@@ -35,11 +35,12 @@ public function generate($obj = null) {
35
36
$dash = "";
37
// dd($data);;
38
- if ($data->graphicElement->pen["lineStyle"] == "Dotted")
+ $lineStyle = isset($data->graphicElement->pen["lineStyle"]) ? $data->graphicElement->pen["lineStyle"] : "Solid";
39
+ if ($lineStyle == "Dotted")
40
$dash = "0,1";
- elseif ($data->graphicElement->pen["lineStyle"] == "Dashed")
41
+ elseif ($lineStyle == "Dashed")
42
$dash = "4,2";
- elseif ($data->graphicElement->pen["lineStyle"] == "Solid")
43
+ elseif ($lineStyle == "Solid")
44
45
//echo "$borderwidth,";
46
@@ -83,4 +84,4 @@ public function generate($obj = null) {
83
84
85
}
86
-?>
87
+?>
0 commit comments