summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-10-28 22:14:01 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-10-28 22:14:01 +0000
commitf0c7823bd854087fcd2989d205a178d9deea1a9a (patch)
tree9f371e73dc37cc718fdbb111b12d447203863ed7 /src/ui
parentIncrease recursion levels (diff)
downloadinkscape-f0c7823bd854087fcd2989d205a178d9deea1a9a.tar.gz
inkscape-f0c7823bd854087fcd2989d205a178d9deea1a9a.zip
Fix a regression updating CSS data
(bzr r14422.1.24)
Diffstat (limited to 'src/ui')
-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 6376f1e19..f64e56a5b 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(item->getRepr(), "style");
+ SPCSSAttr *css = sp_repr_css_attr_new();
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(item->getRepr(), "style");
+ SPCSSAttr *css = sp_repr_css_attr_new();
if(overlap || picker || visible){
if(!fit_item(desktop, item, a, move, center, angle, _scale, scale, picker, visible, overlap, offset, css)){
limit += 1;