diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2016-05-08 05:55:11 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2016-05-08 05:55:11 +0000 |
| commit | efb5cb4a7a22316994b7a89b51d3d0ca654dabd4 (patch) | |
| tree | d95feaddf8fcc42e8e0aab08d1e77b43be30126d /src/display/sp-canvas.cpp | |
| parent | Temporarily hard code GTK3 ruler background to off white. (diff) | |
| download | inkscape-efb5cb4a7a22316994b7a89b51d3d0ca654dabd4.tar.gz inkscape-efb5cb4a7a22316994b7a89b51d3d0ca654dabd4.zip | |
Clarify license.
Most Inkscape source code does not specify GPL version, so it is essentially
GPL v1+ under section 9. Authors of the few GPL v2 only files were contacted
and all agreed to relicense under GPL v2 or later. We also have a few files
copies from GIMP, which are GPL v3+, so the complete program is available
under GPL v3 or later.
(bzr r14873)
Diffstat (limited to 'src/display/sp-canvas.cpp')
| -rw-r--r-- | src/display/sp-canvas.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp index decb14184..7d76fa043 100644 --- a/src/display/sp-canvas.cpp +++ b/src/display/sp-canvas.cpp @@ -1159,8 +1159,11 @@ void SPCanvas::handle_size_allocate(GtkWidget *widget, GtkAllocation *allocation allocation->width, allocation->height); if (canvas->_backing_store) { cairo_t *cr = cairo_create(new_backing_store); - cairo_set_source_surface(cr, canvas->_backing_store, 0, 0); + cairo_translate(cr, -canvas->_x0, -canvas->_y0); cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); + cairo_set_source(cr, canvas->_background); + cairo_paint(cr); + cairo_set_source_surface(cr, canvas->_backing_store, canvas->_x0, canvas->_y0); cairo_paint(cr); cairo_destroy(cr); cairo_surface_destroy(canvas->_backing_store); |
