goffice r1908 - in trunk: . goffice/graph



Author: emmanuel
Date: 2007-10-02 22:33:25 +0100 (Tue, 02 Oct 2007)
New Revision: 1908
ViewCVS link: http://svn.gnome.org/viewcvs/goffice?rev=1908&view=rev

Modified:
   trunk/ChangeLog
   trunk/goffice/graph/gog-control-foocanvas.c
   trunk/goffice/graph/gog-control-foocanvas.h
Log:
2007-10-02 Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>

	Fix for Bug 153883 - making graphs insanely large leads to ~infinite
	memory and cpu use.
	The fix consists in not using the graph image cache for big graphs, and
	just render directly. The patch uses a temporary image surface, since
	rendering onto an xlib surface may cause segfault on path with lot of
	points. Another issue is all path point coordinates are clipped as a
	workaround to the long line cairo bug, which means the graph content
	won't display beyond the clipping value.
	The arbitrary limit is set to image with a number of pixels greater
	than the number of screen pixels.

	* goffice/graph/gog-control-foocanvas.c (gog_control_foocanvas_draw),
	(gog_control_foocanvas_update): here.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]