Fixed Webkit bug related to issue 460: Path segments should remember their curvature
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1331 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -1885,6 +1885,11 @@ function svg_edit_setup() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
svgCanvas.runExtensions("toolButtonStateUpdate", {
|
||||||
|
nofill: bNoFill,
|
||||||
|
nostroke: bNoStroke
|
||||||
|
});
|
||||||
|
|
||||||
operaRepaint();
|
operaRepaint();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -4784,13 +4784,6 @@ function BatchCommand(text) {
|
|||||||
newseg.c2_y = oldseg.y2;
|
newseg.c2_y = oldseg.y2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: codedread, I need to be reminded of why WebKit needs to re-set @d
|
|
||||||
// (this prevents SVG-edit from remembering the curvature of points)
|
|
||||||
// d attribute needs to be manually updated for Webkit
|
|
||||||
if(isWebkit && current_path) {
|
|
||||||
var fixed_d = pathActions.convertPath(current_path);
|
|
||||||
current_path.setAttribute('d', fixed_d);
|
|
||||||
}
|
|
||||||
|
|
||||||
addAllPointGripsToPath();
|
addAllPointGripsToPath();
|
||||||
// recalculateDimensions(current_path);
|
// recalculateDimensions(current_path);
|
||||||
@@ -7162,7 +7155,8 @@ function BatchCommand(text) {
|
|||||||
obj_num++;
|
obj_num++;
|
||||||
|
|
||||||
// Opera's "d" value needs to be reset for Opera/Win/non-EN
|
// Opera's "d" value needs to be reset for Opera/Win/non-EN
|
||||||
if(!support.goodDecimals && el.nodeName == 'path') {
|
// Also needed for webkit (else does not keep curved segments on clone)
|
||||||
|
if((isWebkit || !support.goodDecimals) && el.nodeName == 'path') {
|
||||||
var fixed_d = pathActions.convertPath(el);
|
var fixed_d = pathActions.convertPath(el);
|
||||||
new_el.setAttribute('d', fixed_d);
|
new_el.setAttribute('d', fixed_d);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user