Skip to content

Commit

Permalink
Merge pull request #12643 from KDSBrowne/bbb-backport-12639
Browse files Browse the repository at this point in the history
Backport Bug Fix When A Shape Coordinate Is Zero
  • Loading branch information
antobinary committed Jun 22, 2021
2 parents e3ae906 + 75a1493 commit 7c9397e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default class ShapePointerListener extends Component {
if (this.isDrawing) {
// make sure we are drawing and we have some coordinates sent for this shape before
// to prevent sending DRAW_END on a random mouse click
if (this.lastSentCoordinate.x && this.lastSentCoordinate.y) {
if (this.lastSentCoordinate.x !== undefined && this.lastSentCoordinate.y !== undefined) {
const { getCurrentShapeId } = actions;
this.handleDrawCommonAnnotation(
this.initialCoordinate,
Expand Down

0 comments on commit 7c9397e

Please sign in to comment.