Symbols are required to save cairo state.
This commit is contained in:
		@@ -121,6 +121,9 @@ ld_lua_symbol_draw (LdSymbol *symbol, cairo_t *cr)
 | 
			
		||||
	g_return_if_fail (cr != NULL);
 | 
			
		||||
 | 
			
		||||
	self = LD_LUA_SYMBOL (symbol);
 | 
			
		||||
 | 
			
		||||
	cairo_save (cr);
 | 
			
		||||
	ld_lua_private_draw (self->priv->lua, self, cr);
 | 
			
		||||
	cairo_restore (cr);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -73,6 +73,9 @@ ld_symbol_area_get_type (void)
 | 
			
		||||
 *
 | 
			
		||||
 * #LdSymbol represents a symbol in the #LdDocument that is in turn
 | 
			
		||||
 * drawn onto the #LdCanvas.
 | 
			
		||||
 *
 | 
			
		||||
 * All implementations of this abstract class are required to use
 | 
			
		||||
 * cairo_save() and cairo_restore() when drawing to store the state.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
G_DEFINE_ABSTRACT_TYPE (LdSymbol, ld_symbol, G_TYPE_OBJECT);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user