Apparently the change committed by Johan was overwritten by the c++ification (see http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/9946#src/draw-context.cpp). I've tested the patch from comment #1 (with a minor change to fit the trunk), and it looks good, at least on Windows XP.
Attaching an updated version of the patch that works with revision 11652.
Apparently the change committed by Johan was overwritten by the c++ification (see http:// bazaar. launchpad. net/~inkscape. dev/inkscape/ trunk/revision/ 9946#src/ draw-context. cpp).
I've tested the patch from comment #1 (with a minor change to fit the trunk), and it looks good, at least on Windows XP.
Attaching an updated version of the patch that works with revision 11652.