diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2014-12-21 20:22:53 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2014-12-21 20:22:53 +0000 |
| commit | ea791c4ddb154cf306d236feeb4805b46ec560ac (patch) | |
| tree | e199cd4ce1278486525d0421ecdd2c336eb28a9a /src/ui/tools/calligraphic-tool.cpp | |
| parent | Purge sp_desktop_acetate (diff) | |
| download | inkscape-ea791c4ddb154cf306d236feeb4805b46ec560ac.tar.gz inkscape-ea791c4ddb154cf306d236feeb4805b46ec560ac.zip | |
Purge sp_desktop_drawing
(bzr r13813)
Diffstat (limited to 'src/ui/tools/calligraphic-tool.cpp')
| -rw-r--r-- | src/ui/tools/calligraphic-tool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/calligraphic-tool.cpp b/src/ui/tools/calligraphic-tool.cpp index 97ac3d112..821756a55 100644 --- a/src/ui/tools/calligraphic-tool.cpp +++ b/src/ui/tools/calligraphic-tool.cpp @@ -373,7 +373,7 @@ void CalligraphicTool::brush() { double R, G, B, A; Geom::IntRect area = Geom::IntRect::from_xywh(brush_w.floor(), Geom::IntPoint(1, 1)); cairo_surface_t *s = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 1, 1); - sp_canvas_arena_render_surface(SP_CANVAS_ARENA(sp_desktop_drawing(SP_EVENT_CONTEXT(this)->desktop)), s, area); + sp_canvas_arena_render_surface(SP_CANVAS_ARENA(this->desktop->getDrawing()), s, area); ink_cairo_surface_average_color_premul(s, R, G, B, A); cairo_surface_destroy(s); double max = MAX (MAX (R, G), B); |
