Mid marker not working on straight segment

Summary:

In some cases there assigning a middle marker to a line does not work

Steps to reproduce:

  • open Inkscape
  • draw a straight line
  • select node tool
  • add a node in the middle of the line without moving the node
  • go to stroke style
  • choose a Mid Marker, for example, an arrow

What happened?

nothing

What should have happened?

there should be an arrow in the middle of the segment If you move the node, the marker appears.

Sample attachments:

Version info

Inkscape 1.2-dev Mac OS Montery 12.0.1


<!--
    ❤️ Thank you for filling in a new bug report, we appreciate the help! ❤️
    Please be patient while we try to find the time to look into your issue.
    Remember that Inkscape is developed by volunteers in their spare time, we'll try our best to respond to all reports.
-->

<!--
    Please be careful when/after writing #  for example in logs, code, or versions of linux
    - use inline code span - single backticks (`) before and after it, like this - `#1618`
    - use multi-line code block - triple backticks (```) to fence/enclose console logs
    - attach long logs as a text file.
-->