File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public class CanvasImageInfo {
110110 node- > set_prop( " width" , width. to_string() );
111111 node- > set_prop( " height" , height. to_string() );
112112
113- node- > add_child( pixbuf_rect. save() );
113+ node- > add_child( pixbuf_rect. save( " rect " ) );
114114
115115 return ( node );
116116
Original file line number Diff line number Diff line change @@ -188,9 +188,9 @@ public class CanvasRect {
188188
189189 // -------------------------------------------------------------
190190 // Saves this rectangle to XML format.
191- public Xml .Node * save () {
191+ public Xml .Node * save ( string name ) {
192192
193- Xml . Node * node = new Xml .Node ( null , " rect " );
193+ Xml . Node * node = new Xml .Node ( null , name );
194194
195195 node- > set_prop( " x" , x. to_string() );
196196 node- > set_prop( " y" , y. to_string() );
You can’t perform that action at this time.
0 commit comments