Flowed text: segfault occurs when copying text from flow region

Bug #1228509 reported by Masato HASHIMOTO on 2013-09-21
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
High
Markus Engel

Bug Description

Segmentation fault occurs on Flowed text.

Steps to Reproduce:
1) Create Flow region
2) Type characters
3) Drag some/all characters
4) Copy them (Ctrl-C or from context menu)

Backtrace attached.

Build & Platform:
Build 2013-09-21 on ArchLinux (x86_64)

Versions:
Inkscape trunk-r12557
gcc 4.8.1

Masato HASHIMOTO (hashimo) wrote :
su_v (suv-lp) wrote :

Reproduced with r12557 on OS X 10.7.5 (same backtrace).

Testing with archived builds:
- works with rev <= 12531
- crashes with rev >= 12532

@Markus - could you take a closer look?

tags: added: clipboard crash regression text
Changed in inkscape:
importance: Undecided → High
milestone: none → 0.49
status: New → Confirmed
su_v (suv-lp) wrote :
su_v (suv-lp) wrote :

With rev <= 12531, copying a highlighted selection from flowed text produces this console message, but no crash:
e.g. with r12487:

(inkscape-12487:47077): GLib-GObject-WARNING **: invalid cast from `SPString' to `SPItem'

Markus Engel (engelmarkus) wrote :

This patch should fix that, please confirm this is working for you.
Note that the style (font, size, ...) of the selected text is not copied along. But this has never worked before it seems.

Changed in inkscape:
assignee: nobody → Markus Engel (engelmarkus)
status: Confirmed → In Progress
su_v (suv-lp) wrote :

Patch tested successfully with r12567 (OS X 10.7.5, GTK+/Quartz 2.24.21)

On 2013-09-21 14:21 +0200, Markus Engel wrote:
> Note that the style (font, size, ...) of the selected text is not
> copied along. But this has never worked before it seems.

Not supported, see
- Bug #240382 “Copy & paste text doesn't keep formatting”
  <https://bugs.launchpad.net/inkscape/+bug/240382>

Markus Engel (engelmarkus) wrote :

Fixed in r12569.

Changed in inkscape:
status: In Progress → Fix Released
su_v (suv-lp) on 2013-09-21
Changed in inkscape:
milestone: 0.49 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers