Fix for zoom-to-fit crash in public repo
Maurice van der Pot <griffon26-bCGDfOjggl9Wk0Htik3J/[email protected]> Tue, 27 Oct 2009 21:57:46 +0100
| Newsgroups | gmane.comp.gnome.apps.planner.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi guys, I've implemented a fix for the zoom-to-fit crash. The problem was that I called gnome_canvas_get_scroll_offsets in the gantt_chart_reflow_idle function and that it did not always return up-to-date values. The old and large values caused an overflow and eventually a crash. The reason for calling get_scroll_offsets was to have the same scrolling behaviour when dragging the duration of a task while left of the project end as when right of the project end. The simple implementation (without get_scroll_offsets) would have the gantt scroll to the left in the latter case as soon as the cursor moves away from the right edge instead of staying stationary until the cursor reaches the left edge. This fix uses a dummy object on the gantt to prevent the scrollable area from shrinking as a task duration is decreased. The dummy object is only present while dragging. Like Kurt said it's probably easier to have changes in a public repo, so I put up my public planner repo at: http://www.kfk4ever.com/~griffon26/planner.git Or via gitweb: http://www.kfk4ever.com/gitweb.cgi?p=planner.git;a=summary You'll find the fix in there. I'll push this in a few days if nobody objects. Regards, Maurice. -- Maurice van der Pot Gentoo Linux Developer [email protected] http://www.gentoo.org Gnome Planner Developer griffon26-bCGDfOjggl9Wk0Htik3J/[email protected] http://live.gnome.org/Planner _______________________________________________ Planner-dev-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/planner-dev-list
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkrnXsoACgkQMGnpIbeahxxS0gCfYMWchbZXUTk+F390xmwbDZ1D CPMAnRoabeXP2wCoPOAoMq2St6b8JDTt =BiuH -----END PGP SIGNATURE-----