diff options
Diffstat (limited to 'src/display/nr-arena-shape.h')
| -rw-r--r-- | src/display/nr-arena-shape.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/display/nr-arena-shape.h b/src/display/nr-arena-shape.h index e6484de9f..9b4c846fe 100644 --- a/src/display/nr-arena-shape.h +++ b/src/display/nr-arena-shape.h @@ -38,9 +38,7 @@ struct NRArenaShape : public NRArenaItem { SERVER }; - Paint() : _type(NONE), _server(NULL) { - sp_color_set_rgb_rgba32(&_color, 0); - } + Paint() : _type(NONE), _color(0), _server(NULL) {} Paint(Paint const &p) { _assign(p); } ~Paint() { clear(); } @@ -60,7 +58,7 @@ struct NRArenaShape : public NRArenaItem { void set(SPColor const &color) { clear(); _type = COLOR; - sp_color_copy(&_color, &color); + _color = color; } void set(SPPaintServer *server) { clear(); @@ -86,7 +84,7 @@ struct NRArenaShape : public NRArenaItem { void _assign(Paint const &p) { _type = p._type; _server = p._server; - sp_color_copy(&_color, &p._color); + _color = p._color; if (_server) { sp_object_ref(_server, NULL); } |
