summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/spray-tool.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-10-28 19:12:17 +0000
committerjabiertxof <jabier.arraiza@marker.es>2015-10-28 19:12:17 +0000
commitb0541736ec1d94e0c3db41c5dae5a11fefa65989 (patch)
tree11b975920316bb9533ec7a96b5826f2ef12367fc /src/ui/tools/spray-tool.cpp
parentadd a ignore transparent areas option (diff)
downloadinkscape-b0541736ec1d94e0c3db41c5dae5a11fefa65989.tar.gz
inkscape-b0541736ec1d94e0c3db41c5dae5a11fefa65989.zip
Improvement to the css stored on change colors
(bzr r14422.1.22)
Diffstat (limited to 'src/ui/tools/spray-tool.cpp')
-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 e1c5b36b2..41e209cc1 100644
--- a/src/ui/tools/spray-tool.cpp
+++ b/src/ui/tools/spray-tool.cpp
@@ -553,7 +553,7 @@ static bool sp_spray_recursive(SPDesktop *desktop,
}
Geom::Point center = item->getCenter();
Geom::Point move = (Geom::Point(cos(tilt)*cos(dp)*dr/(1-ratio)+sin(tilt)*sin(dp)*dr/(1+ratio), -sin(tilt)*cos(dp)*dr/(1-ratio)+cos(tilt)*sin(dp)*dr/(1+ratio)))+(p-a->midpoint());
- SPCSSAttr *css = sp_repr_css_attr_new();
+ SPCSSAttr *css = sp_repr_css_attr(item->getRepr(), "style");
if(overlap || picker || visible){
if(!fit_item(desktop, item, a, move, center, angle, _scale, scale, picker, visible, overlap, offset, css)){
limit += 1;
@@ -688,7 +688,7 @@ static bool sp_spray_recursive(SPDesktop *desktop,
}
Geom::Point center=item->getCenter();
Geom::Point move = (Geom::Point(cos(tilt)*cos(dp)*dr/(1-ratio)+sin(tilt)*sin(dp)*dr/(1+ratio), -sin(tilt)*cos(dp)*dr/(1-ratio)+cos(tilt)*sin(dp)*dr/(1+ratio)))+(p-a->midpoint());
- SPCSSAttr *css = sp_repr_css_attr_new();
+ SPCSSAttr *css = sp_repr_css_attr(item->getRepr(), "style");
if(overlap || picker || visible){
if(!fit_item(desktop, item, a, move, center, angle, _scale, scale, picker, visible, overlap, offset, css)){
limit += 1;