QSvgHandler: handle parseLength() error in parseFontSize()


The old code didn't pass a bool ok to parseLength(), so it never
learned whether what parseLength() returned was valid (and it can
return 0.0!), but still continued to process the value as if it was,
with unknown consequences.

Fix by passing and checking the ok bool and stopping processing when
it's not ok.

Amends the start of the git history in this module.

Pick-to: 6.11 6.8
Task-number: QTBUG-146716
Change-Id: I288e3f7591ef0681dea36675b5d9c758111853eb
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
commita695a5b0a7381130d39f856f870e8bfcbcfcb684
parentdbfe09015084aebfcac1a895d41a8739174b57dc
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeMon, 18 May 2026 22:12:35 +0000