From 581728ab1aa37098338be1c416382eb2f7053c73 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Thu, 27 Aug 2009 13:04:32 +0000 Subject: [PATCH] Fixed issue 130: Contextual Panel flickers on rotate git-svn-id: http://svg-edit.googlecode.com/svn/trunk@486 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index b29ea03e..e118bdd5 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -158,6 +158,13 @@ function svg_edit_setup() { // updates the context panel tools based on the selected element var updateContextPanel = function() { var elem = selectedElement; + + // No need to update anything else in rotate mode + if (svgCanvas.getMode() == 'rotate' && elem != null) { + $('#angle').val(svgCanvas.getRotationAngle(elem)); + return; + } + $('#selected_panel, #multiselected_panel, #rect_panel, #circle_panel,\ #ellipse_panel, #line_panel, #text_panel').hide(); if (elem != null) {