From 9ff715bbe1662efd270dceb31cef8a9678fda9ee Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Wed, 2 Dec 2009 21:17:11 +0000 Subject: [PATCH] Fixed bug in last revision where new font didn't affect element git-svn-id: http://svg-edit.googlecode.com/svn/trunk@990 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 3dfd9a84..8afd57b4 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -594,6 +594,10 @@ function svg_edit_setup() { } }); + $('#font_family').change(function() { + svgCanvas.setFontFamily(this.value); + }); + $('#seg_type').change(function() { svgCanvas.setSegType($(this).val()); }); @@ -732,8 +736,7 @@ function svg_edit_setup() { addDropDown('#font_family_dropdown', function() { var fam = $(this).text(); - $('#font_family').val(fam); - svgCanvas.setFontFamily(fam); + $('#font_family').val($(this).text()).change(); }); addDropDown('#opacity_dropdown', function() {