Highlighted text disappears when replacing

Bug #186846 reported by Tomas
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

I have imported an SVG file exported from Corel Draw.
The text field behaves strangely, when highlighting all the text in one row, and starts to replacing it by typing in a new text, the whole text box disappears. The same behaviour can be seen if the text is backspaced one character at a time. When the text is empty the container disappears entirely.

It works fine if the text was created in Inkscape though, both ways.

In v0.45.1 Inkscape sometimes crashes when doing undo to fix this, have not seen this in in the pre0.46 released on jan 23rd..

I have a sample file but have not yet found a way to include it.

Revision history for this message
Tomas (bengtsson-tomas) wrote :

Document that shows the described problem.

Revision history for this message
Tom Davidson (tjd-mit) wrote :

I get several warnings (see below) when I try to open this file in Linux (Fedora Core 6), using today's SVN rev 17195. The XML tree also looks funky, with lots of quote marks in the tree browser. The W3C SVG validator also says that it is not valid SVG (see http://validator.w3.org/check?uri=http%3A%2F%2Flaunchpadlibrarian.net%2F11605038%2Fbugg.svg&charset=%28detect+automatically%29&doctype=Inline&group=0 ), so I think this is most likely a bad input file. The behavior you describe is obviously buggy, though. Maybe once we figure out what is wrong with the file, Inkscape should just refuse to open it. FWIW, Firefox 2 renders this file with a large black rectangle.

** (inkscape:24070): WARNING **: Unimplemented style property SP_PROP_CLIP_RULE: value: evenodd

** (inkscape:24070): CRITICAL **: SPCurve* sp_curve_new_from_foreign_bpath(const NArtBpath*): assertion `new_bpath != NULL' failed

** (inkscape:24070): CRITICAL **: SPCurve* sp_curve_new_from_foreign_bpath(const NArtBpath*): assertion `new_bpath != NULL' failed

** (inkscape:24070): CRITICAL **: SPCurve* sp_curve_new_from_foreign_bpath(const NArtBpath*): assertion `new_bpath != NULL' failed

** (inkscape:24070): CRITICAL **: SPCurve* sp_curve_new_from_foreign_bpath(const NArtBpath*): assertion `new_bpath != NULL' failed

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Tom Davidson (tjd-mit) wrote :

The file that you attached looks like it was opened in Inkscape and then re-saved. Could you attach the file as exported by Corel Draw, before it has been touched by Inkscape?

Changed in inkscape:
status: Confirmed → Incomplete
Revision history for this message
Tomas (bengtsson-tomas) wrote :

Yes, here it comes, directly exported from CDR. It is a few text lines only.

Revision history for this message
mutzinet (nielsgi) wrote :

I get the same problem of disappearing text with plots exported from grace.
Inkscape 0.46 and grace 5.1.21 on Kubuntu Hardy.
Here is a file as exported.

ScislaC (scislac)
Changed in inkscape:
importance: Low → Medium
status: Incomplete → Confirmed
jazzynico (jazzynico)
tags: added: text
Revision history for this message
su_v (suv-lp) wrote :

Underlying issue:
Bug #167904 “Incorrect handling of <text> without <tspan>”

Revision history for this message
Beluga (buovjaga) wrote :

Repro disappearance of box, if removed all characters.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15073 (GTK3)

Revision history for this message
mray (mrayyyy) wrote :

Closing because migrated already to https://gitlab.com/inkscape/inbox/issues/248.

Closed by: https://gitlab.com/mray

Changed in inkscape:
status: Confirmed → Invalid
tbnorth (terry-n-brown)
tags: added: bug-migration
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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