trunk: mesh gradient tool cannot assign colors to stops, crash when dragging a stop (rev >= r12532)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Markus Engel |
Bug Description
Steps to reproduce:
0) build trunk with mesh tool enabled
1) launch trunk (default prefs, default new doc)
2) draw a reactangle
3) switch to the mesh gradient tool
4) defined a 3x3 mesh (controls bar)
5) double-click the rectangle with the mesh tool
6) try to assign different colors to the inner stops
--> only the first one updates the color, later ones don't
7) grab the node last selected and drag it
--> crash:
SPGradient:
** (inkscape:76406): WARNING **: SPGradient:
(inkscape:76406): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1 char 71: Invalid UTF-8 encoded text in name - not valid 'UH\x89\
(inkscape:76406): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1 char 71: Invalid UTF-8 encoded text in name - not valid 'UH\x89\
Assertion failed: (drag_valid), function update_handles, file ../../src/
Program received signal SIGABRT, Aborted.
0x00007fff93822ce2 in __pthread_kill ()
(gdb)
Confirmed with r12682 on OS X 10.7.5
Based on tests with archived builds:
- not reproduced with rev <= 12531
- reproduced with rev >= 12532
this regression was introduced with the merge of the C++ification branch in revision 12532:
<http://
(Note: the markup warnings are not related to the regression - they are present ever since the mesh tool was merged into trunk with builds complied with llvm-gcc-4.2 on OS X 10.7.5 - FSF GCC and clang builds don't produce them).
Related branches
Changed in inkscape: | |
importance: | Undecided → High |
Changed in inkscape: | |
milestone: | 0.49 → none |
The attached patch fixes this; note that the code has only ever worked because the wrong constant was used in the type check. I'm not sure now what all these other functions are good for.