Ah... this kind of thing makes me glad I replaced the C-style pointer casting :-)
The GObject pointer cast macros perform runtime type-checking of objects so it reveals places such as this where we were doing something dodgy all along.
Anyway, I've fixed this in lp:inkscape r11951. We should keep our eyes open for other similar runtime warnings that have been revealed since the type-checking was introduced.
Ah... this kind of thing makes me glad I replaced the C-style pointer casting :-)
The GObject pointer cast macros perform runtime type-checking of objects so it reveals places such as this where we were doing something dodgy all along.
Anyway, I've fixed this in lp:inkscape r11951. We should keep our eyes open for other similar runtime warnings that have been revealed since the type-checking was introduced.