mirror of
https://github.com/igorski/bitmappery.git
synced 2026-06-17 03:34:56 +02:00
Caught null pointer exception on outline rendering
This commit is contained in:
@@ -287,7 +287,7 @@ function drawSelectionOutline( ctx, zCanvas, viewport, selection, color, current
|
||||
);
|
||||
});
|
||||
// for lasso selections, draw line to current cursor position
|
||||
if ( currentPosition?.x !== 0 && currentPosition?.y !== 0 ) {
|
||||
if ( currentPosition && currentPosition.x !== 0 && currentPosition.y !== 0 ) {
|
||||
ctx.lineTo(( .5 + currentPosition.x ) << 0, ( .5 + currentPosition.y ) << 0 );
|
||||
}
|
||||
ctx.stroke();
|
||||
|
||||
Reference in New Issue
Block a user