Fix rendering lines with zero length


In case of having a zero length line, the line should be rendered
as a point when the stroke-linecap is set to round or square.

Fixes: QTBUG-132468
Pick-to: 6.9 6.8 6.7
Change-Id: I7fb12be891eb5eb4fcee0826a4ef8aeb075d4c7d
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
commit05be1624423789148bd8e7beb74667a29ba12509
parentb7d97aa29508b15aea71d172251aa85ec95ca52e
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeFri, 28 Feb 2025 15:05:24 +0200