summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-10-27 19:45:58 +0000
committerjabiertxof <jabier.arraiza@marker.es>2015-10-27 19:45:58 +0000
commit18dd2576ee9fa17b4d8d31f6d6e4150e4e92caac (patch)
tree835c038880349fb98e726f5a2e962f49ce0566c4 /src
parentNow the picker work with alphas and also in no overlap mode (diff)
downloadinkscape-18dd2576ee9fa17b4d8d31f6d6e4150e4e92caac.tar.gz
inkscape-18dd2576ee9fa17b4d8d31f6d6e4150e4e92caac.zip
little tweak
(bzr r14422.1.19)
Diffstat (limited to 'src')
-rw-r--r--src/ui/tools/spray-tool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tools/spray-tool.cpp b/src/ui/tools/spray-tool.cpp
index 25e9dbd73..269afbbbf 100644
--- a/src/ui/tools/spray-tool.cpp
+++ b/src/ui/tools/spray-tool.cpp
@@ -455,8 +455,8 @@ static bool fit_item(SPDesktop *desktop,
if(!overlap){
doc->ensureUpToDate();
}
- Geom::Point mid_point = bbox->midpoint();
- Geom::IntRect area = Geom::IntRect::from_xywh(floor(desktop->d2w(mid_point)[Geom::X]), floor(desktop->d2w(mid_point)[Geom::Y]), 1, 1);
+ Geom::Point mid_point = desktop->d2w(bbox->midpoint());
+ Geom::IntRect area = Geom::IntRect::from_xywh(floor(mid_point[Geom::X]), floor(mid_point[Geom::Y]), 1, 1);
double R = 0, G = 0, B = 0, A = 0;
cairo_surface_t *s = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 1, 1);
sp_canvas_arena_render_surface(SP_CANVAS_ARENA(desktop->getDrawing()), s, area);