From b56d4f3c8774e059ed748dd4f831c1c743c7e40a Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 5 Mar 2021 21:55:36 -0500 Subject: started to clean up docdecorations and fix some ink rotation/sizing bugs. --- src/client/views/InkStrokeProperties.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/views/InkStrokeProperties.ts') diff --git a/src/client/views/InkStrokeProperties.ts b/src/client/views/InkStrokeProperties.ts index ce7f3d8d9..9257ee4e6 100644 --- a/src/client/views/InkStrokeProperties.ts +++ b/src/client/views/InkStrokeProperties.ts @@ -171,7 +171,7 @@ export class InkStrokeProperties { SelectionManager.Views().forEach(action(inkView => { const doc = Document(inkView.rootDoc); if (doc.type === DocumentType.INK && doc.x && doc.y && doc._width && doc._height && doc.data) { - doc.rotation = Number(doc.rotation) + Number(angle); + doc.rotation = NumCast(doc.rotation) + angle; const ink = Cast(doc.data, InkField)?.inkData; if (ink) { -- cgit v1.2.3-70-g09d2