File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
/**
3
3
* @package php-svg-lib
4
4
* @link http://github.com/PhenX/php-svg-lib
5
- * @author Fabien Ménager <[email protected] >
5
+ * @author Fabien M�nager <[email protected] >
6
6
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
7
7
*/
8
8
@@ -41,6 +41,10 @@ protected function before($attributes)
41
41
$ link = $ attributes ["xlink:href " ];
42
42
$ this ->reference = $ document ->getDef ($ link );
43
43
44
+ if ($ this ->reference ) {
45
+ $ this ->reference ->before ($ attributes );
46
+ }
47
+
44
48
$ surface = $ document ->getSurface ();
45
49
$ surface ->save ();
46
50
@@ -50,6 +54,10 @@ protected function before($attributes)
50
54
protected function after () {
51
55
parent ::after ();
52
56
57
+ if ($ this ->reference ) {
58
+ $ this ->reference ->after ();
59
+ }
60
+
53
61
$ this ->getDocument ()->getSurface ()->restore ();
54
62
}
55
63
You can’t perform that action at this time.
0 commit comments