Crash on "Convert to Text"

Bug #168227 reported by A-b-users
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Critical
gustav_b

Bug Description

SUSE 10.2, Inkscape 0.44+devel, built Jan 8 2007, installed from
Autopackage file.

1. create a text object of, say, 20 chars
2. create a short line or curve (freehand, Bezier or calligraphic)
   or a small shape (rectangle, circle, star or spiral)
3. select everything (F1, Ctrl+a)
4. "Text/Flow into Frame"
5. "Text/Convert to Text"
--crash--

Revision history for this message
gustav_b (gustav-b) wrote :

Originator: NO

Oh, my mistake. This happens whenever the shape you flow the text into is
too small to show any characters. The question is, what should happen we
you convert a flowtext with no visible characters to a text? We could:

* Just don't convert it and display a warning saying that flowed text
needs to be visible in order to convert it.
* Convert it anyway, that will give you an empty text object which can't
be selected except for in xml editor. (Probably a bad solution).
* Unflow the text (as if you had selected "Unflow" from the menu).

Thoughts?

Revision history for this message
gustav_b (gustav-b) wrote :

Originator: NO

I went for solution alternative #1 -- skip conversion + inform user. It
seemed like the safest alternative considering the risk of breaking
something just before the release.

Another way to solve it might be to stop the user from creating invisible
flow texts in the first place, i.e. make sure that container shape is
always big enough to hold at least one character of the text.

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.