From 882c59d800200a43f850292f4cca77bd02e2600d Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 8 Jun 2009 16:28:48 +0000 Subject: [PATCH] update stroke-style in UI too git-svn-id: http://svg-edit.googlecode.com/svn/trunk@73 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 23664592..3ea44900 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -43,17 +43,19 @@ function svg_edit_setup() { opacity = (opacity*100)+" %"; $('#group_opacity').val(opacity); + // update stroke-width var strokeWidth = elem.getAttribute("stroke-width"); if (strokeWidth == null || strokeWidth == "") { strokeWidth = 1; } $('#stroke_width').val(strokeWidth); - + + // update stroke-style var strokeDashArray = elem.getAttribute("stroke-dasharray"); if (strokeDashArray == null || strokeDashArray == "") { strokeDashArray = "none"; } - $('#stroke_dasharray').val(strokeDashArray); + $('#stroke_style').val(strokeDashArray); } }