A typo on a font resize locks program

Bug #940578 reported by David Mathog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
John Smith

Bug Description

Inkscape 0.48+dev, Windows XP SP3

Recent versions have the ability to use floating point numbers for the font size. This allows a typo to lock the program.
To trigger this error:

1. Type something into a document.
2. Resize the text by holding down control and dragging one of the end arrows. Be sure the final text size is not even. For
instance, it might read 28.132982346942
3. Try to change this by typing 7 over the 8, but typo it, and also take out the decimal point.

Result: the program locks up trying to resize the text to 27132982346942.

I waited 5 minutes with the program pegged at 100% CPU, then killed it.

Suggested fix - add a sanity check on manually entered font sizes. Require a decimal place if there are more than 4 or 5 digits.

su_v (suv-lp)
tags: added: fonts transformations ui
Revision history for this message
John Smith (john-smithi) wrote :

Fix committed to trunk (r11558).

The toolbar font selector and the Text/Font dialog have a max font size of 10,000 (can be change via preference /dialogs/textandfont/maxFontSize). This value was previously hard coded in the Text/Font dialog only.

Changed in inkscape:
assignee: nobody → John Smith (john-smithi)
status: New → Fix Committed
Kris (kris-degussem)
Changed in inkscape:
milestone: none → 0.49
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.