Switching to other tool while the geometric tool is still in use crashes inskscape

Steps to reproduce:

  1. Create new document.
  2. Select tool "Do geometric construction"
  3. Select a geometric tool. (Like line segment)
  4. Click the canvas once.
  5. Instead of clicking again to finish operation, press F1 to cause an internal error.

What happened?

Crash

What should have happened?

Tool switch

Inkscape Version and Operating System:

Windows 10 x64

Inkscape 1.0 Beta 1

Edited by Anon