- Fixed a bug where moving the mouse outside the window could crash when pasting a selection while having auto dragging enabled. Fixes #110.

This commit is contained in:
biwa 2019-04-20 16:55:20 +02:00
parent fbf4b259d6
commit 22df516e11

View file

@ -394,6 +394,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
// This updates the selection
private void Update()
{
// biwa. This is a fix for autodrag, since it will actually fire OnMouseLeave and would crash when Update is called while the
// mouse is outside the window. This does *not* happen when dragging without autodrag.
if (!mouseinside) return;
// Not in any modifying mode?
if(mode == ModifyMode.None)
{