20 Dec
                
                    2008
                
            
            
                20 Dec
                
                '08
                
            
            
            
        
    
                7:27 p.m.
            
        On Sat, Dec 20, 2008 at 3:19 PM, Jasper van de Gronde
My guess is that there simply isn't any instance of SPDesktop when Inkscape is used as a command line executable. So possibly the error isn't in sp_item_i2d_affine as such, but rather in the fact that it is being called at all. If anyone with a bit more understanding of this area of the code could have a look that would be great.
You are right. In command line mode, there are no desktops, only documents. So, desktops should only be used in UI code, never in low-level rendering code.
-- 
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org