#! /bin/sh /usr/share/dpatch/dpatch-run ## 04-fix_segfault.dpatch by Francisco Manuel Garcia Claramonte ## ## ## DP: This patch fix the problem with the segfault problem when doing ## click in a new point in the screen. ## Thanks to Ubuntu launchpad team for the patch. ## https://bugs.launchpad.net/ubuntu/+source/drgeo/+bug/257797 ## ## This patch is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public Licences as by published ## by the Free Software Foundation; either version 2; or (at your option) ## any later version @DPATCH@ diff -urNad drgeo-1.1.0~/geo/drgeo_figure.cc drgeo-1.1.0/geo/drgeo_figure.cc --- drgeo-1.1.0~/geo/drgeo_figure.cc 2005-07-14 09:30:01.000000000 +0200 +++ drgeo-1.1.0/geo/drgeo_figure.cc 2008-11-15 12:32:45.000000000 +0100 @@ -1309,7 +1309,7 @@ gint drgeoFigure::preferedUndoLevel () { - atoi (drgeoConfigGet (":undoLevel")); + return atoi (drgeoConfigGet (":undoLevel")); } void