Skip to content

Commit

Permalink
Fix free hand update. Fixes #505.
Browse files Browse the repository at this point in the history
(cherry picked from commit f9ed6ff)
  • Loading branch information
ivmartel committed Jun 12, 2018
1 parent 596b5c1 commit c371182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/freeHand.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ dwv.tool.UpdateFreeHand = function (anchor /*, image*/)
var points = kline.points();
points[anchor.id()] = anchor.x() - kline.x();
points[anchor.id()+1] = anchor.y() - kline.y();
kline.points( points );
// concat to make Konva think it is a new array
kline.points( points.concat() );

// update text
var ktext = klabel.getText();
Expand Down

0 comments on commit c371182

Please sign in to comment.