Comment 8 for bug 1309050

Revision history for this message
su_v (suv-lp) wrote :

On 2014-04-18 04:51 +0100, Liam P. White wrote:
> Additionally, ~suv has stated that the same line of code has had
> issues in stable.

This refers to a discussion in #inkscape-devel:

 su_v : and that merging of gradient knots is a special case
 su_v : (I do recall that either that, or separating merged stops (drag with shift) used to produce console warnings in the past)
 su_v : stable when merging two stops:
 su_v : (inkscape:76365): GLib-GObject-WARNING **: invalid cast from `GtkWindow' to `SPKnot'
 su_v : or
 su_v : (inkscape:76365): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `SPKnot'
 su_v : trunk < 13223 doesn't produce those warnings though
 su_v : (13222)
LiamW : Then the crash is actually a good thing
LiamW : Not for the end user
LiamW : But for the debugger
 su_v : seems that http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/12000 stopped the warnings in trunk
 su_v : (test with archived builds: warning with r11997, no warning with rev >= 12000)
LiamW : that was probably not a good thing to kill the warnings
 su_v : r11997:
 su_v : (inkscape-11997:76618): GLib-GObject-WARNING **: invalid cast from `SPCtrlLine' to `SPKnot'
 su_v : or r11995:
 su_v : (inkscape-11995:76601): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `SPKnot'
LiamW : dynamic_cast<SPKnot*>(void* randomMemory)
LiamW : basically