aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/DocumentDecorations.tsx2
-rw-r--r--src/client/views/nodes/PresBox.tsx2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 744683a0f..d7b0b5158 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -275,8 +275,6 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b
// doc._width = (right - left) * element.props.ScreenToLocalTransform().Scale;
doc._height = (bottom - top);
doc._width = (right - left);
-
-
}
index++;
}
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx
index 271a7274f..90897b8fd 100644
--- a/src/client/views/nodes/PresBox.tsx
+++ b/src/client/views/nodes/PresBox.tsx
@@ -777,7 +777,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema>
if (this.targetDoc.isInkMask) {
if (this.activeItem.y !== undefined &&
this.activeItem.x !== undefined &&
- this.targetDoc.y !== undefined &&
+ this.targetDoc.x !== undefined &&
this.targetDoc.y !== undefined) {
const timer = (ms: number) => new Promise(res => this._presTimer = setTimeout(res, ms));
const time = 10;